• File: sysconfig.cpython-37.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/__pycache__/sysconfig.cpython-37.opt-1.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 15.17 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Sjx_
@sdZddlZddlZddlmZmZdddddd	d
ddd
dgZdddddddddddddddddddddddddddd d d!d!d"d#d$d%d&d&d'd(d)d*d$d%d+d+d,d,d-d*d$d%d.Zd%Zej	
dZd/ejdd0Z
d1ejdd0ZejejZejejZejejZejejZdadZd2d3ZejrPejeejZneeZej d4kre!"d5reej#eeeZd6ej$kreej$d6Zd7d8Z%e&ed9dZ'ej d4krd:d;Z(e(eZe(e'Z'did=d>Z)e)d?Z*e*rx&d@D]Z+dAee+dB<dCee+dD<qWdEdFZ,dGdHZ-dIdJZ.dKdLZ/dMdNZ0djdOdPZ1dQdZ2dRdSZ3dTdUZ4dVdWZ5dXdYZ6dkdZdZ7d[dZ8d\d
Z9d]d	Z:e/dd?fd^d
Z;e/dd?fd_dZ<d`dZ=dadZ>dbdZ?dcdZ@dddeZAdfdgZBeCdhkreBdS)lz-Access to Python's configuration information.N)pardirrealpathget_config_h_filenameget_config_varget_config_varsget_makefile_filenameget_pathget_path_names	get_pathsget_platformget_python_versionget_scheme_namesparse_config_hz/{installed_base}/lib64/python{py_version_short}z){platbase}/lib64/python{py_version_short}z1{base}/lib/python{py_version_short}/site-packagesz7{platbase}/lib64/python{py_version_short}/site-packagesz;{installed_base}/include/python{py_version_short}{abiflags}z?{installed_platbase}/include/python{py_version_short}{abiflags}z
{base}/binz{base})stdlib
platstdlibpurelibplatlibincludeplatincludescriptsdataz{installed_base}/lib/pythonz{base}/lib/pythonz{installed_base}/include/pythonz{installed_base}/Libz
{base}/Libz{base}/Lib/site-packagesz{installed_base}/Includez{base}/Scriptsz#{userbase}/Python{py_version_nodot}z1{userbase}/Python{py_version_nodot}/site-packagesz+{userbase}/Python{py_version_nodot}/Includez+{userbase}/Python{py_version_nodot}/Scriptsz
{userbase})rrrrrrrz){userbase}/lib64/python{py_version_short}z5{userbase}/lib/python{py_version_short}/site-packagesz7{userbase}/lib64/python{py_version_short}/site-packagesz+{userbase}/include/python{py_version_short}z{userbase}/binz{userbase}/lib/pythonz#{userbase}/lib/python/site-packagesz{userbase}/include)posix_prefix
posix_homentZnt_userZ
posix_userZosx_framework_userz%d.%dz%d%dcCs"yt|Stk
r|SXdS)N)rOSError)pathr./opt/alt/python37/lib64/python3.7/sysconfig.py_safe_realpathdsrr)z\pcbuild\win32z\pcbuild\amd64Z_PYTHON_PROJECT_BASEcCs.x(dD] }tjtj|d|rdSqWdS)N)z
Setup.distzSetup.localZModulesTF)osrisfilejoin)dfnrrr_is_python_source_dirys
r%_homecCs0|r,tj|tjtjtdr,tS|S)NZPCbuild)r rnormcase
startswithr"_PREFIX)r#rrr_fix_pcbuildsr*FcCs|rtrttSttS)N)	_sys_homer%
_PROJECT_BASE)Z
check_homerrris_python_buildsr-T)rrz{srcdir}/Includerz{projectbase}/.rc
Csfy|jf|Stk
r`y|jftjStk
rZ}ztd|dWdd}~XYnXYnXdS)Nz{%s})formatKeyErrorr environAttributeError)sZ
local_varsvarrrr_subst_varssr4cCs4|}x&|D]\}}||kr$q|||<qWdS)N)keysitems)Ztarget_dictZ
other_dictZtarget_keyskeyvaluerrr_extend_dicts
r9cCsfi}|dkri}t|txDt|D]4\}}tjdkrHtj|}tjt	||||<q*W|S)N)posixr)
r9r_INSTALL_SCHEMESr6r namer
expandusernormpathr4)schemevarsZresr7r8rrr_expand_varss
rAcCstjdkrdStjS)Nr:r)r r<rrrr_get_default_schemes
rBcCsztjdd}|r|Sdd}tjdkrBtjdp6d}||dStjdkrptjrp|dd	tjd
tjddS|ddS)
NPYTHONUSERBASEcWstjtjj|S)N)r rr=r")argsrrrjoinusersz_getuserbase.<locals>.joinuserrAPPDATA~PythondarwinLibraryz%d.%drz.local)r r0getr<sysplatform
_frameworkversion_info)env_baserEbaserrr_getuserbases


rRc	Cspddl}|d}|d}|d}|dkr2i}i}i}t|dd}|}	WdQRXx|	D]}
|
ds`|
d	kr|q`||
}|r`|d
d\}}
|
}
|
dd	}d
|kr|
||<q`yt	|
}
Wn$t
k
r|
dd
||<Yq`X|
||<q`Wt|}d}x t
|dkr0xt|D]}||}||}||}|rv|rv||krp|n|}n|r|n|}|dk	r|d
}d}||krt||}n||krd}nx|tjkrtj|}n`||kr0|dr
|dd|kr
d	}n$d||krd}nt|d|}nd	||<}|r&||d}|d|}||krx||7}||7}d
|kr|||<n~yt	|}Wn"t
k
r|||<Yn
X|||<|||dr&|dd|kr&|dd}||kr&|||<n|||<||q,WqWx.|D]"\}}
t|
tr<|
||<q<W|||S)zParse a Makefile-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    rNz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}surrogateescape)errors#rz$$$)ZCFLAGSZLDFLAGSZCPPFLAGSTFZPY_)recompileopen	readlinesr(stripmatchgroupreplaceint
ValueErrorlistr5lentuplesearchstartstrr r0endremover6
isinstanceupdate)filenamer@rZZ_variable_rxZ_findvar1_rxZ_findvar2_rxZdoneZnotdoneflineslinemnvZtmpvZ	variablesZrenamed_variablesr<r8Zm1Zm2founditemZafterkrrr_parse_makefiles	


















rxcCsdtrtjtptdSttdr0dttj	f}nd}ttj
drP|dtj
j7}tjtd|dS)z Return the path of the Makefile.ZMakefileabiflagszconfig-%s%sZconfig
_multiarchz-%sr)

_PYTHON_BUILDr rr"r+r,hasattrrL_PY_VERSION_SHORTryimplementationrzr)Zconfig_dir_namerrrrPs
c
Cs(tjddjtjtjttjdddS)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rzrV)ZabirMZ	multiarch)	r r0rKr.rLryrMgetattrr~rrrr_get_sysconfigdata_name]s
rc
Csddl}i}t}yt||WnJtk
rj}z,d|}t|drR|d|j}t|Wdd}~XYnXt}y"t|}t||WdQRXWnJtk
r}z,d|}t|dr|d|j}t|Wdd}~XYnXt	r|d|d<t
}dtjkr$ddl
}||}	||	_|	tj|<d	ttf}
ttd
rF|
d7}
tj|
dd
tj|
|d}t|ddd(}|d|d|j||dWdQRXtdddd}||
WdQRXdS)z;Generate the Python module containing build-time variables.rNz.invalid Python installation: unable to open %sstrerrorz (%s)ZLDSHAREDZ	BLDSHAREDrIzbuild/lib.%s-%sZgettotalrefcountz-pydebugT)exist_okz.pywutf8)encodingzB# system configuration generated and used by the sysconfig module
zbuild_time_vars = )streamzpybuilddir.txtascii)pprintrrxrr|rrr\rr{rrLrMtypes
ModuleTypebuild_time_varsmodulesrr}r makedirsrr"write)rr@ZmakefileemsgZconfig_hror<rmoduleZ
pybuilddirZdestfilerrr_generate_posix_varsfsL







rcCs0t}t|ttdgd}|j}||dS)z7Initialize the module as appropriate for POSIX systems.rrN)r
__import__globalslocalsrrm)r@r<Z_temprrrr_init_posixsrcCsVtd|d<td|d<td|d<d|d<d	|d
<t|d<tjttj|d<d
S)z+Initialize the module as appropriate for NTrZLIBDESTrZ
BINLIBDESTrZ	INCLUDEPYz.pyd
EXT_SUFFIXz.exeZEXEZVERSIONZBINDIRN)r_PY_VERSION_SHORT_NO_DOTr rdirnamerrL
executable)r@rrr_init_non_posixsrc	Cs|dkri}ddl}|d}|d}xx|}|s8P||}|r|dd\}}yt|}Wntk
rvYnX|||<q*||}|r*d||d<q*W|S)zParse a config.h-style file.

    A dictionary containing name/value pairs is returned.  If an
    optional dictionary is passed in as the second argument, it is
    used instead of a new dictionary.
    Nrz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rWr)rZr[readliner_r`rbrc)	fpr@rZZ	define_rxZundef_rxrqrrrsrtrrrrs*




cCsBtr,tjdkr"tjtptd}q4tp(t}ntd}tj|dS)zReturn the path of pyconfig.h.rZPCrz
pyconfig-64.h)r{r r<rr"r+r,r)Zinc_dirrrrrs

cCstttS)z,Return a tuple containing the schemes names.)rfsortedr;rrrrr
scCstS)z*Return a tuple containing the paths names.)_SCHEME_KEYSrrrrr	scCs|rt||St|SdS)zReturn a mapping containing an install scheme.

    ``scheme`` is the install scheme name. If not provided, it will
    return the default scheme for the current platform.
    N)rAr;)r?r@expandrrrr
s
cCst||||S)z[Return a path corresponding to the scheme.

    ``scheme`` is the install scheme name.
    )r
)r<r?r@rrrrrscGs|tdkrFiattd<ttd<ttd<ttd<ttd<ttd<ttd<ttd	<ttd
<ttd<yt	j
td<Wntk
rd
td<YnXtj
dkrtttj
dkrtttd}|dk	r|td<ttd<tdt}tj
dkrtrtjt}tj||}ntjt}t|td<t	jdkrFddl}|t|rtg}x|D]}|t|qVW|StSdS)anWith no arguments, return a dictionary of all configuration
    variables relevant for the current platform.

    On Unix, this means every variable defined in Python's installed Makefile;
    On Windows it's a much smaller set.

    With arguments, return a list of values that result from looking up
    each argument in the configuration variable dictionary.
    Nprefixexec_prefixZ
py_versionZpy_version_shortZpy_version_nodotZinstalled_baserQZinstalled_platbaseZplatbaseZprojectbaseryrVrr:rSOuserbasesrcdirrIr)_CONFIG_VARSr)_EXEC_PREFIX_PY_VERSIONr}r_BASE_PREFIX_BASE_EXEC_PREFIXr,rLryr1r r<rrrKrRr{rrrr"rrM_osx_supportZcustomize_config_varsappend)rDrrrQrZvalsr<rrrrsP






cCs*|dkrddl}|dtdt|S)zReturn the value of a single variable using the dictionary returned by
    'get_config_vars()'.

    Equivalent to get_config_vars().get(name)
    rrNz SO is deprecated, use EXT_SUFFIXr)warningswarnDeprecationWarningrrK)r<rrrrrTsc
Cstjdkr"dtjkrdStjStjdks6ttds<tjSdtjkrPtjdSt\}}}}}|	dd}|	d	d
}|	dd}|dd
dkrd||fS|dd
dkr|ddkrd}dt
|dd|ddf}ddd}|d|tj7}n|dddkr(d|||fS|dddkrjd}ddl}|
d}||}|r|}n2|ddd krddl}	|	t|||\}}}d!|||fS)"aReturn a string that identifies the current platform.

    This is used mainly to distinguish platform-specific build directories and
    platform-specific built distributions.  Typically includes the OS name and
    version and the architecture (as supplied by 'os.uname()'), although the
    exact information included depends on the OS; on Linux, the kernel version
    isn't particularly important.

    Examples of returned values:
       linux-i586
       linux-alpha (?)
       solaris-2.6-sun4u

    Windows will return one of:
       win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
       win32 (all others - specifically, sys.platform is returned)

    For other non-POSIX platforms, currently just returns 'sys.platform'.

    rZamd64z	win-amd64r:unameZ_PYTHON_HOST_PLATFORM/rV _-NZlinuxz%s-%sZsunosr5Zsolarisz%d.%srYrZ32bitZ64bit)ilz.%sZaixz%s-%s.%scygwinz[\d.]+rIz%s-%s-%s)r r<rLversionlowerrMr|r0rrarbmaxsizerZr[r_r`rZget_platform_osxr)
ZosnameZhostreleasermachineZbitnessrZZrel_rerrrrrrr`sF


 



cCstS)N)r}rrrrrscCsJxDtt|D]0\}\}}|dkr2td|td||fqWdS)Nrz%s: z
	%s = "%s")	enumeraterr6print)titlerindexr7r8rrr_print_dictsrcCsfdtjkrtdStdttdttdtttdtttdt	dS)z*Display all information sysconfig detains.z--generate-posix-varsNzPlatform: "%s"zPython version: "%s"z!Current installation scheme: "%s"ZPathsZ	Variables)
rLargvrrrrrBrr
rrrrr_mains
r__main__)F)N)N)D__doc__r rLZos.pathrr__all__r;rrsplitrrOr}rrr>rr)base_prefixrrrbase_exec_prefixrrZ
_USER_BASErrrr,getcwdr<rendswithr"r0r%rr+r*r-r{r?r4r9rArBrRrxrrrrrrrr
r	r
rrrrrrr__name__rrrr<module>s

	
	

	?
 ML