o ?Og @sn ddlZddlZzddlZWn eyddlZYnwddZddZddZdd Zd d Z d d Z dS)NcCs0tjdkrdnd}d|d|d|d||S)Ni @zaix-{:1x}{:1d}{:02d}-{:04d}-{}r)sysmaxsizeformat)ZvrtlbdZ_szr 3/opt/alt/python310/lib64/python3.10/_aix_support.py_aix_tagsr cCs2|ddd\}}}t|dt|t|gS)N.)splitint)vrmfvrZtlr r r _aix_vrtlsrcCs@ tgd}|d}|d}t|dt|dfS)N)z/usr/bin/lslppz-Lqczbos.mp64zutf-8:rr) subprocessZ check_outputdecodestriprstrr)outr r r _aix_bosmp64s  rcCs t\}}tt||S)N)rr r)rr r r r aix_platform,s rcCs td}|s tdt|dS)NZBUILD_GNU_TYPEzBUILD_GNU_TYPE is not defined)r) sysconfigget_config_var ValueErrorr)Zgnu_typer r r _aix_bgtDs  r!c CsF td}zt|}Wnttfytd|wtt|S)NZ AIX_BUILDDATEz)AIX_BUILDDATE is not defined or invalid: )rrrr TypeErrorr r!)Z build_dater r r aix_buildtagLs   r#) rrr ImportErrorZ_bootsubprocessr rrrr!r#r r r r s