python (3.12.0)

(root)/
lib/
python3.12/
__pycache__/
_aix_support.cpython-312.pyc

ˑeDdZddlZddlZd
dZdZdZdZdZdZd	Z	y)zShared AIX support functions.Nc.ddl}ddl}td|jd}|j	|5}|r|d|j
d}n|d|j
d}|j
|s|jndcdddS#1swYyxYw)	z0Output from successful command execution or NonerNz/tmp/_aix_support.zw+bz >'z' 2>&1z 2>/dev/null >'')os
contextlibopengetpidclosingnamesystemread)
commandstringcapture_stderrrrfpcmds      @/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/_aix_support.py_read_cmd_outputrs
	

		
B
		B	92%2BGG<C,9277CC "		#rwwyD999sA
BBc~tjdk(rdnd}|dk7r|nd}dj|d|d|d||S)	Ni @r'zaix-{:1x}{:1d}{:02d}-{:04d}-{})sysmaxsizeformat)vrtlbd_sz_bds    r_aix_tagr sI("bCa"TC+2247DGT!WcSVWWcx|jddd\}}}t|dt|t|gS)N.)splitint)vrmfvrtls    r	_aix_vrtlr,$s9zz#r"HAq""JAB((r!c	ddl}|jgd}|j	d}|jj
d}|ddk7rt|dnd	}t|d
|fS#t$rtd}YnwxYw)a(
    Return a Tuple[str, int] e.g., ['7.1.4.34', 1806]
    The fileset bos.rte represents the current AIX run-time level. It's VRMF and
    builddate reflect the current ABI levels of the runtime environment.
    If no builddate is found give a value that will satisfy pep425 related queries
    rN)z/usr/bin/lslppz-Lqczbos.rtez/usr/bin/lslpp -Lqc bos.rtezutf-8:r%rr)	
subprocesscheck_outputImportErrorrdecodestripr&r'str)r0outrs   r_aix_bos_rter7*s>%%&KL**W
C

))+

C
 Cb'R-#c"g,TCAK><=>sA11BBcFt\}}tt||S)a
    AIX filesets are identified by four decimal values: V.R.M.F.
    V (version) and R (release) can be retrieved using ``uname``
    Since 2007, starting with AIX 5.3 TL7, the M value has been
    included with the fileset bos.rte and represents the Technology
    Level (TL) of AIX. The F (Fix) value also increases, but is not
    relevant for comparing releases and binary compatibility.
    For binary compatibility the so-called builddate is needed.
    Again, the builddate of an AIX release is associated with bos.rte.
    AIX ABI compatibility is described  as guaranteed at: https://www.ibm.com/    support/knowledgecenter/en/ssw_aix_72/install/binary_compatability.html

    For pep425 purposes the AIX platform tag becomes:
    "aix-{:1x}{:1d}{:02d}-{:04d}-{}".format(v, r, tl, builddate, bitsize)
    e.g., "aix-6107-1415-32" for AIX 6.1 TL7 bd 1415, 32-bit
    and, "aix-6107-1415-64" for AIX 6.1 TL7 bd 1415, 64-bit
    )r7r r,)r(rs  raix_platformr9?s &~HD"IdOR((r!c^tjd}|stdt|S)NBUILD_GNU_TYPEzBUILD_GNU_TYPE is not defined)r()	sysconfigget_config_var
ValueErrorr,)gnu_types r_aix_bgtr@Ws-''(89H899(##r!ctjd}	t|}tt
|S#ttf$rtd|wxYw)zD
    Return the platform_tag of the system Python was built on.
    
AIX_BUILDDATEz)AIX_BUILDDATE is not defined or invalid: )r<r=r'r>	TypeErrorr r@)
build_dates raix_buildtagrE_sc))/:J,_
HJ
++
	",D&>+,	,,s	6A)F)
__doc__rr<rr r,r7r9r@rEr!r<module>rHs2#
9$X)*)0$
,r!