• File: sysconfig.cpython-38.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python38/lib64/python3.8/distutils/__pycache__/sysconfig.cpython-38.opt-1.pyc
  • Date Modified: 10/26/2026 8:15 PM
  • File size: 11.87 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
U

jP@sdZddlZddlZddlZddlZddlmZddlmZm	Z	ej
ejZ
ej
ejZej
ejZej
ejZdejkrej
ejdZn&ejrej
ej
ejZneZddZeed	dZejd
krddZeeZeeZd
dZeZ dZ!ze sej"Z!Wne#k
r*YnXddZ$d-ddZ%d.ddZ&ddZ'ddZ(ddZ)d/ddZ*e+dZ,e+dZ-e+d Z.d0d!d"Z/d#d$Z0da1d%d&Z2d'd(Z3d)d*Z4d+d,Z5dS)1aProvide access to Python's configuration information.  The specific
configuration variables available depend heavily on the platform and
configuration.  The values may be retrieved using
get_config_var(name), and the list of variables is available via
get_config_vars().keys().  Additional convenience functions are also
available.

Written by:   Fred L. Drake, Jr.
Email:        <fdrake@acm.org>
N)DistutilsPlatformError)get_platformget_host_platformZ_PYTHON_PROJECT_BASEcCs,dD]"}tjtj|d|rdSqdS)N)ZSetupzSetup.localZModulesTF)ospathisfilejoin)dfnr8/opt/alt/python38/lib64/python3.8/distutils/sysconfig.py_is_python_source_dir+sr_homentcCs0|r,tj|tjtjtdr,tS|S)NZPCbuild)rrnormcase
startswithr	PREFIX)r
rrr
_fix_pcbuild4s
rcCstrttSttS)N)	_sys_homerproject_baserrrr

_python_build<srcCsdtjddS)zReturn a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
    z%d.%dN)sysversion_inforrrr
get_python_versionPsrcCs|dkr|rtpt}tjdkrjtrL|r.tp,tStjt	dd}tj
|Sdtt}tj|d|Stjdkrtrtj|dtjj
tj|dStj|dStd	tjdS)
aReturn the directory containing installed Python header files.

    If 'plat_specific' is false (the default), this is the path to the
    non-platform-specific header files, i.e. Python.h and so on;
    otherwise, this is the path to platform-specific header files
    (namely pyconfig.h).

    If 'prefix' is supplied, use it instead of sys.base_prefix or
    sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
    NposixsrcdirZIncludepythonZincluderPCzFI don't know where Python installs its C header files on platform '%s')BASE_EXEC_PREFIXBASE_PREFIXrnamepython_buildrrrr	get_config_varnormpathrbuild_flagspathsepr)
plat_specificprefixZincdirZ
python_dirrrr
get_python_incXs*

r+cCs|dkr&|r|rtpt}n|r"tp$t}tjdkrp|s8|r>d}nd}tj||dt}|r`|Stj|dSn<tjdkr|rtj|dStj|ddSnt	d	tjdS)
aSReturn the directory containing the Python library (standard or
    site additions).

    If 'plat_specific' is true, return the directory containing
    platform-specific modules, i.e. any module from a non-pure-Python
    module distribution; otherwise, return the platform-shared library
    directory.  If 'standard_lib' is true, return the directory
    containing standard Python library modules; otherwise, return the
    directory for site-specific modules.

    If 'prefix' is supplied, use it instead of sys.base_prefix or
    sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
    Nrlib64librz
site-packagesrZLibz?I don't know where Python installs its library on platform '%s')
r!r"EXEC_PREFIXrrr#rr	rr)r)standard_libr*r-Z	libpythonrrr
get_python_libs0

r0c	Cs|jdkrtjdkr8tds8ddl}|tdtd<tddd	d
ddd
d\}}}}}}}}	dtj	krtj	d}
tjdkrdtj	kr|
|r|
|t|d}|
}dtj	krtj	d}dtj	krtj	d}dtj	krtj	d}n|d}dtj	kr|dtj	d}d	tj	kr<|dtj	d	}|dtj	d	}dtj	kr~|dtj	d}|dtj	d}|dtj	d}d
tj	krtj	d
}dtj	kr|dtj	d}n|d|	}|d|}
|j||
|
d|||||d||_
dS)zDo any platform-specific customization of a CCompiler instance.

    Mainly needed on Unix, so we can plug in the information that
    varies across Unices and is stored in Python's Makefile.
    ZunixdarwinZCUSTOMIZED_OSX_COMPILERrNTrueZCCZCXXCFLAGSZCCSHAREDZLDSHAREDZSHLIB_SUFFIXZARZARFLAGSZCPPz -ELDFLAGS CPPFLAGS)ZpreprocessorcompilerZcompiler_soZcompiler_cxxZ	linker_soZ
linker_exearchiver)Z
compiler_typerplatformr%_osx_supportcustomize_compiler_config_varsget_config_varsrenvironrlenZset_executablesZshared_lib_extension)r7r:ZccZcxxZcflagsZccsharedZldsharedZshlib_suffixZarZar_flagsZnewccZcppr8Zcc_cmdrrr
r;sn











	r;cCsDtr,tjdkr"tjtptd}q6tp(t}n
tdd}tj|dS)z2Return full pathname of installed pyconfig.h file.rr rr)z
pyconfig.h)r$rr#rr	rrr+)Zinc_dirrrr
get_config_h_filenames


rAcCs\trtjtptdStddd}dtt	}t
tjdrL|dtjj
7}tj||dS)zAReturn full pathname of installed Makefile from the Python build.ZMakefilerrr)r/zconfig-{}{}
_multiarchz-%s)r$rrr	rrr0formatrr'hasattrrimplementationrC)Zlib_dirZconfig_filerrr
get_makefile_filenamesrGcCs|dkri}td}td}|}|s.q||}|rx|dd\}}zt|}Wntk
rlYnX|||<q ||}|r d||d<q |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.
    Nz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rrr)recompilereadlinematchgroupint
ValueError)fpgZ	define_rxZundef_rxlinemnvrrr
parse_config_hs&




rUz"([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_]*)}c	Csddlm}||ddddd}|dkr*i}i}i}|}|dkrDqt|}|r2|dd\}}	|	}	|	dd	}
d
|
kr|	||<q2zt|	}	Wn$t	k
r|	dd
||<Yq2X|	||<q2d}|rtt
|D]}||}
t|
pt
|
}|rj|d}d}||kr$t||}n||kr4d
}nx|tjkrLtj|}n`||kr|drz|dd|krzd	}n$d||krd
}nt|d|}nd	||<}|rp|
|d}|
d|||}
d
|kr|
||<nzzt|
}
Wn"t	k
r|
||<Yn
X|
||<||=|drp|dd|krp|dd}||krp|
||<q||=qq||D]"\}}	t|	tr|	||<q|||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.
    r)TextFilersurrogateescape)Zstrip_commentsZskip_blanksZ
join_lineserrorsNrz$$r$)r3r4r6TFZPY_)Zdistutils.text_filerVrJ_variable_rxrKrLstripreplacerMrNlist_findvar1_rxsearch_findvar2_rxstrrr>rendstartcloseitems
isinstanceupdate)rrPrVrOZdoneZnotdonerQrRrSrTZtmpvZrenamed_variablesr#valuefounditemZafterkrrr
parse_makefile/s












rmcCsVt|pt|}|rR|\}}|d|||d||d}qqRq|S)aExpand Makefile-style variables -- "${foo}" or "$(foo)" -- in
    'string' according to 'vars' (a dictionary mapping variable names to
    values).  Variables not present in 'vars' are silently expanded to the
    empty string.  The variable values in 'vars' should not contain further
    variable expansions; if 'vars' is the output of 'parse_makefile()',
    you're fine.  Returns a variable-expanded version of 's'.
    rrN)r_r`raspangetrL)svarsrRZbegrcrrr
expand_makefile_varss*rrc
CsVtjddjtjtjttjddd}t	|t
tdgd}|j}ia
t
|dS)	z7Initialize the module as appropriate for POSIX systems.Z_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rCr)Zabir9Z	multiarchbuild_time_varsrN)rr>rorDrabiflagsr9getattrrF
__import__globalslocalsrsr<rh)r#Z_temprsrrr
_init_posixsrycCs~i}tddd|d<tddd|d<tdd|d<td|d<d	|d
<tdd|d
<tjtj	t
j|d<|adS)z+Initialize the module as appropriate for NTrrrBZLIBDESTZ
BINLIBDESTr@Z	INCLUDEPY
EXT_SUFFIXz.exeZEXE.rZVERSIONZBINDIRN)
r0r+_impextension_suffixesrr]rrdirnameabspathr
executabler<)rPrrr
_init_ntsrcGs\tdkr*tdtj}|r(|niattd<ttd<td}|dk	rV|td<tdt}tjdkrtrtj	
t}tj	||}ntj	
t}tj	
tj	|td<trtjdkrt}tj	tds|tkrtj	|td}tj	|td<tjd	kr*d
dl}|t|rTg}|D]}|t|q8|StSdS)aWith no arguments, return a dictionary of all configuration
    variables relevant for the current platform.  Generally this includes
    everything needed to build extensions and install both pure modules and
    extensions.  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.
    NZ_init_r*exec_prefixrzSOrrr1r)r<rwrorr#rr.rr$rr~rGr	rr&isabsgetcwdrr9r:Zcustomize_config_varsappend)argsfuncrrbaser:Zvalsr#rrr
r=sB




r=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)warningswarnDeprecationWarningr=ro)r#rrrr
r%!sr%)rN)rrN)N)N)6__doc__r|rrHrrXrutilrrrr&r*rrr.base_prefixr"base_exec_prefixr!r>rrrr~rrrurr#rrr$r'rtAttributeErrorrr+r0r;rArGrUrIr[r_rarmrrr<ryrr=r%rrrr
<module>s\



(
+I





jJ