b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 / distutils /
Filename/usr/lib64/python2.6/distutils/sysconfig.pyo
Size15.64 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 09:39
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
ò� ]c
@s�dZdZddkZddkZddkZddkZddklZeii ei
�Z eii ei �Z
eiieiiei��ZeidjoBdedi�jo+eiieiieeii��ZneidjoKded i�jo4eiieiieeiieii��ZneidjoKd
ed i�jo4eiieiieeiieii��Znd �Ze�Zd
�Zddd�Zdddd�Zd�Zd�Zd�Zdd�Z ei!d�Z"ei!d�Z#ei!d�Z$dd�Z%d�Z&da'd�Z(d�Z)d�Z*d�Z+d�Z,d�Z-dS( s�Provide 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: <[email protected]>
s=$Id: sysconfig.py 83688 2010-08-03 21:18:06Z mark.dickinson $iÿÿÿÿN(tDistutilsPlatformErrortnttpcbuildiøÿÿÿs\pc\viöÿÿÿs\pcbuild\amd64iòÿÿÿcCs?x8dD]0}tiitiitd|��otSqWtS(Ns
Setup.dists Setup.localtModules(s
Setup.dists Setup.local(tostpathtisfiletjoint project_basetTruetFalse(tfn((s+/usr/lib64/python2.6/distutils/sysconfig.pyt
_python_build-s
% cCs tid S(s�Return a string containing the major and minor Python version,
leaving off the patchlevel. Sample return values could be '1.5'
or '2.2'.
i(tsystversion(((s+/usr/lib64/python2.6/distutils/sysconfig.pytget_python_version5sicCsq|d jo|otpt}ntidjo�tostiitiit i
��}|o
|}n=tii tii |t
d���}tii |d�}|Stii |ddt��Stidjotii |d�Stidjo5|otii |dd�Stii |d�Sn8tid jotii |d�Std
ti��d S( s�Return 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.prefix or
sys.exec_prefix -- i.e., ignore 'plat_specific'.
tposixtsrcdirtIncludetincludetpythonRtmactMactos2sFI don't know where Python installs its C header files on platform '%s'N(tNonet EXEC_PREFIXtPREFIXRtnamet python_buildRtdirnametrealpathR
t
executabletabspathRtget_config_varRR(t
plat_specifictprefixtbuildirtinc_dirR((s+/usr/lib64/python2.6/distutils/sysconfig.pytget_python_inc=s.
!
cCsÏ|d
jo|otpt}ntidjo`|p|o
d}nd}tii||dt��}|o|Stii|d�Sn7tidjoJ|otii|d�St�djo|Stii|dd�SnÝtid jot|o8|otii|dd
�Stii|dd�SqË|otii|d�Stii|dd�SnYtid jo5|otii|d�Stii|dd�Sntd ti��d
S(sIReturn 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.prefix or
sys.exec_prefix -- i.e., ignore 'plat_specific'.
Rtlib64tlibRs
site-packagesRtLibs2.2Rs lib-dynloadRs?I don't know where Python installs its library on platform '%s'N( RRRRRRRRR(R"t standard_libR#R(t libpython((s+/usr/lib64/python2.6/distutils/sysconfig.pytget_python_libhs@

 c

Csà|idjoÌtddddddd�\}}}}}}}dtijotid}ndtijotid}ndtijotid}nd tijotid }n |d
}d tijo|d tid }ndtijo.|d tid}|d tid}nd
tijoC|d tid
}|d tid
}|d tid
}n|d |} |id|d| d| d |d|d|d|�||_ndS(sÄDo 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.
tunixtCCtCXXtOPTtCFLAGStCCSHAREDtLDSHAREDtSOtCPPs -EtLDFLAGSt tCPPFLAGSt preprocessortcompilert compiler_sot compiler_cxxt linker_sot
linker_exeN(t
compiler_typetget_config_varsRtenvirontset_executablestshared_lib_extension(
R:tcctcxxtopttcflagstccsharedtldsharedtso_exttcpptcc_cmd((s+/usr/lib64/python2.6/distutils/sysconfig.pytcustomize_compiler¦s<$
 cCs|to3tidjotiitd�}qIt}ntdd�}t�djo
d}nd}tii||�S(s2Return full pathname of installed pyconfig.h file.RtPCR"is2.2sconfig.hs
pyconfig-64.h(RRRRRRR&R(R%tconfig_h((s+/usr/lib64/python2.6/distutils/sysconfig.pytget_config_h_filenameÑs

cCsato/tiitiitiiti��d�Stdddd�}tii|dd�S(sAReturn full pathname of installed Makefile from the Python build.tMakefileR"iR*tconfig( RRRRRRR
RR,(tlib_dir((s+/usr/lib64/python2.6/distutils/sysconfig.pytget_makefile_filenameâs
'cCsæ|djo
h}ntid�}tid�}xª|i�}|pPn|i|�}|oL|idd�\}}yt|�}Wntj
onX|||<q8|i|�}|od||id�<q8q8|S(sÌParse 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.
s"#define ([A-Z][A-Za-z0-9_]+) (.*)
s&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
iiiN(Rtretcompiletreadlinetmatchtgrouptintt
ValueError(tfptgt define_rxtundef_rxtlinetmtntv((s+/usr/lib64/python2.6/distutils/sysconfig.pytparse_config_hës(

 s"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)s\$\(([A-Za-z][A-Za-z0-9_]*)\)s\${([A-Za-z][A-Za-z0-9_]*)}c
Cs³ddkl}||dddddd�}|d jo
h}nh}h}xÒ|i�}|d joPnti|�}|o�|idd�\}} | i�} | idd �}
d
|
jo| ||<q#yt | �} Wn)t
j
o| idd
�||<q#X| ||<qTqTxo|ogx`|i �D]R} || } t i
| �p
ti
| �}|o|id�}t}
||jot||�}nG||jo
t}
n0|tijoti|}nd ||<}|
o�| |i�}| |i� ||} d
|jo| || <q�yt | �} Wn#t
j
o| i�|| <n X| || <|| =q�q=|| =q=Wq)W|i�|i|�|S( sÌParse 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.
iÿÿÿÿ(tTextFiletstrip_commentsit skip_blankst
join_linesis$$tt$N(tdistutils.text_fileReRRWt _variable_rxRXRYtstriptreplaceRZR[tkeyst _findvar1_rxtsearcht _findvar2_rxR tstrR
RRAtendtstarttclosetupdate(R R]ReR\tdonetnotdoneR`RaRbRcttmpvRtvaluetfoundtitemtafter((s+/usr/lib64/python2.6/distutils/sysconfig.pytparse_makefilesj

 
 









cCsrxkti|�p
ti|�}|oA|i�\}}|d|!|i|id��||}qPq|S(s¨Expand 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'.
ii(RpRqRrtspantgetRY(tstvarsRatbegRt((s+/usr/lib64/python2.6/distutils/sysconfig.pytexpand_makefile_vars\s/c Cs¾h}yt�}t||�WnPtj
oD}d|}t|d�o|d|i}nt|��nXy t�}tt|�|�WnPtj
oD}d|}t|d�o|d|i}nt|��nXt i
djo¥d|jo�|d}t i dd�}|djo|}t i
d|�q�tt|id��tt|id��jo d||f}t|��q�nto|d |d
<nt�d joðt i
d jo^td
d�}t ii|dd�}t ii|dd�}d||d|f|d
<q´t i
djontd
d�}ti|d
�d} t ii| �}
t ii|d|
�} d| tt�f|d
<q´n|adS(s7Initialize the module as appropriate for POSIX systems.s.invalid Python installation: unable to open %ststrerrors (%s)tdarwintMACOSX_DEPLOYMENT_TARGETRit.sF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configuret BLDSHAREDR3s2.1taix4R*iRRt ld_so_aixs
python.exps %s %s -bI:%sR.tbeosis%s -L%s/lib -lpython%sN(RTRtIOErrorthasattrR�RRPRdtfileR
tplatformRtgetenvtputenvtmapRZtsplitRRR,RRtstringtbasenameRt _config_vars( R]tfilenametmsgtmy_msgt
cfg_targett
cur_targett
python_libR�t
python_exptlinkerscript_pathtlinkerscript_namet linkerscript((s+/usr/lib64/python2.6/distutils/sysconfig.pyt _init_posixwsX 
 


1
 cCs§h}tdddd�|d<tdddd�|d<tdd�|d<d|d <d
|d <t�id d
�|d<tiitiiti ��|d<|a
dS(s+Initialize the module as appropriate for NTR"iR*itLIBDESTt
BINLIBDESTt INCLUDEPYs.pydR4s.exetEXER�RitVERSIONtBINDIRN( R,R&RRnRRRRR
RR�(R]((s+/usr/lib64/python2.6/distutils/sysconfig.pyt_init_ntÆs

%cCsÏh}tdddd�|d<tdddd�|d<tdd�|d<dd k}t|d
�pd |d <nd
|i|d <tiitd�|d<tiitdd�|d<d|d<|a d S(s:Initialize the module as appropriate for Macintosh systemsR"iR*iR¤R¥R¦iÿÿÿÿNt runtimemodels.ppc.slbR4s.%s.slbR)t install_libRtinstall_platlibt:R(
R,R&tMacOSR�R«RRRRR�(R]R¯((s+/usr/lib64/python2.6/distutils/sysconfig.pyt _init_macÙs 
cCsih}tdddd�|d<tdddd�|d<tdd�|d<d|d <d
|d <|ad S(
s-Initialize the module as appropriate for OS/2R"iR*iR¤R¥R¦s.pydR4s.exeR§N(R,R&R�(R]((s+/usr/lib64/python2.6/distutils/sysconfig.pyt _init_os2ós

c Gs$tdjoÖt�idti�}|o |�nhattd<ttd<ti djo}ti
�d}t |i d�d�}|djoSx@dD]D}t|}t
idd|�}t
idd|�}|t|<q�WqßdtijoYtid}xIdD]=}t|}t
idd|�}|d|}|t|<qWnt
idtd �}|dj od|id�}tii|�p>x;dD]/}t|}t
idd|�}|t|<q WqÛqßqãn|o2g} x$|D]}
| iti|
��q÷W| StSdS(sêWith 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 and Mac OS 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.
t_init_R#t exec_prefixR�iR�iiR6t
BASECFLAGSR3R1t PY_CFLAGSR�s
-arch\s+\w+\sR7s-isysroot [^ ]*t ARCHFLAGSs-isysroot\s+(\S+)is-isysroot\s+\S+(\s|$)N(sLDFLAGSR´sLDSHAREDsCFLAGSRµs BLDSHARED(sLDFLAGSR´sLDSHAREDsCFLAGSRµs BLDSHARED(sLDFLAGSR´sLDSHAREDsCFLAGSRµs BLDSHARED(R�RtglobalsR�RRRRR
R�tunameRZR�RUtsubRARqRYRtexiststappend( targstfunctkernel_versiont
major_versiontkeytflagstarchRatsdktvalsR((s+/usr/lib64/python2.6/distutils/sysconfig.pyR@sX
 






 

cCst�i|�S(s�Return the value of a single variable using the dictionary
returned by 'get_config_vars()'. Equivalent to
get_config_vars().get(name)
(R@R�(R((s+/usr/lib64/python2.6/distutils/sysconfig.pyR!as(.t__doc__t __revision__RRUR�R
tdistutils.errorsRRtnormpathR#RR³RRRRRRtlowerR RtpardirR RRRR&R,RMRPRTRdRVRlRpRrRR�R�R£RªR°R±R@R!(((s+/usr/lib64/python2.6/distutils/sysconfig.pyt<module>
sL    !'+''   +> +   N  O    ]