Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/distutils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/distutils/sysconfig.pyc
еWc
@sdZdZddkZddkZddkZddkZddklZeii	ei
Zeii	eiZ
eiieiieiZeidjoBdedijo+eiieiieeiiZneidjoKded	ijo4eiieiieeiieiiZneidjoKd
edijo4eiieiieeiieiiZndZeZd
ZdddZddddZdZdZdZddZ ei!dZ"ei!dZ#ei!dZ$ddZ%dZ&da'dZ(dZ)dZ*dZ+dZ,dZ-dS( sProvide 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>
s=$Id: sysconfig.py 83688 2010-08-03 21:18:06Z mark.dickinson $iN(tDistutilsPlatformErrortnttpcbuildis\pc\vis\pcbuild\amd64icCs?x8dD]0}tiitiitd|otSqWtS(Ns
Setup.distsSetup.localtModules(s
Setup.distsSetup.local(tostpathtisfiletjointproject_basetTruetFalse(tfn((s+/usr/lib64/python2.6/distutils/sysconfig.pyt
_python_build-s
%	cCstid S(sReturn 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|djo|otpt}ntidjotostiitiit	i
}|o
|}n=tiitii|t
d}tii|d}|Stii|ddtStidjotii|dStidjo5|otii|ddStii|dSn8tid	jotii|dStd
tidS(sReturn 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(tNonetEXEC_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|dSn7tidjoJ|otii|dStdjo|Stii|ddSntid	jot|o8|otii|dd
Stii|ddSq|otii|dStii|ddSnYtidjo5|otii|dStii|ddSntdtid
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.2Rslib-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|idjotddddddd\}}}}}}}dtijotid}ndtijotid}ndtijotid}nd	tijotid	}n|d
}dtijo|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(sDo 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preprocessortcompilertcompiler_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_compilers<$
	cCs|to3tidjotiitd}qIt}ntdd}tdjo
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_filenames

cCsato/tiitiitiitidStdddd}tii|ddS(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_filenames
'cCs|djo
h}ntid}tid}x|i}|pPn|i|}|oL|idd\}}yt|}Wntj
onX|||<q8|i|}|od||id<q8q8|S(sParse 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_hs(

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
Csddkl}||dddddd}|djo
h}nh}h}x|i}|djoPnti|}|o|idd\}}	|	i}	|	idd	}
d
|
jo|	||<q#yt	|	}	Wn)t
j
o|	idd
||<q#X|	||<qTqTxo|ogx`|iD]R}||}ti
|p
ti
|}|o|id}t}
||jot||}nG||jo
t}
n0|tijoti|}nd	||<}|
o||i}||i ||}d
|jo|||<qyt	|}Wn#t
j
o|i||<nX|||<||=qq=||=q=Wq)W|i|i||S(sParse 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_commentsitskip_blankst
join_linesis$$tt$N(tdistutils.text_fileReRRWt_variable_rxRXRYtstriptreplaceRZR[tkeyst_findvar1_rxtsearcht_findvar2_rxR	tstrR
RRAtendtstarttclosetupdate(RR]ReR\tdonetnotdoneR`RaRbRcttmpvRtvaluetfoundtitemtafter((s+/usr/lib64/python2.6/distutils/sysconfig.pytparse_makefilesj












cCsrxkti|p
ti|}|oA|i\}}|d|!|i|id||}qPq|S(sExpand 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Csh}yt}t||WnPtj
oD}d|}t|do|d|i}nt|nXy t}tt||WnPtj
oD}d|}t|do|d|i}nt|nXt	i
djod|jo|d}tidd}|djo|}ti
d|qtt|idtt|idjo d||f}t|qnto|d	|d
<ntdjot	i
djo^td
d}tii|dd}tii|dd}d||d|f|d
<qt	i
djontd
d}ti|d
d}	tii|	}
tii|d|
}d|ttf|d
<qn|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(RTRtIOErrorthasattrRRRPRdtfileR
tplatformRtgetenvtputenvtmapRZtsplitRRR,RRtstringtbasenameRt_config_vars(R]tfilenametmsgtmy_msgt
cfg_targett
cur_targett
python_libRt
python_exptlinkerscript_pathtlinkerscript_nametlinkerscript((s+/usr/lib64/python2.6/distutils/sysconfig.pyt_init_posixwsX	
	


1
	cCsh}tdddd|d<tdddd|d<tdd|d<d|d	<d
|d<tidd
|d<tiitiiti	|d<|a
dS(s+Initialize the module as appropriate for NTR"iR*itLIBDESTt
BINLIBDESTt	INCLUDEPYs.pydR4s.exetEXERRitVERSIONtBINDIRN(R,R&RRnRRRRR
RR(R]((s+/usr/lib64/python2.6/distutils/sysconfig.pyt_init_nts

%cCsh}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*iRRRiNtruntimemodels.ppc.slbR4s.%s.slbR)tinstall_libRtinstall_platlibt:R(
R,R&tMacOSRRRRRRR(R]R((s+/usr/lib64/python2.6/distutils/sysconfig.pyt	_init_macs
cCsih}tdddd|d<tdddd|d<tdd|d<d|d	<d
|d<|adS(
s-Initialize the module as appropriate for OS/2R"iR*iRRRs.pydR4s.exeRN(R,R&R(R]((s+/usr/lib64/python2.6/distutils/sysconfig.pyt	_init_os2s

cGs$tdjotidti}|o|nhattd<ttd<ti	djo}ti
d}t|idd}|djoSx@dD]D}t|}t
idd|}t
idd|}|t|<qWqdtijoYtid}xIdD]=}t|}t
idd|}|d|}|t|<qWnt
idtd}|dj	od|id}tii|p>x;dD]/}t|}t
idd|}|t|<qWqqqn|o2g}	x$|D]}
|	iti|
qW|	StSdS(sWith 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#texec_prefixRiRiiR6t
BASECFLAGSR3R1t	PY_CFLAGSRs
-arch\s+\w+\sR7s-isysroot [^ 	]*t	ARCHFLAGSs-isysroot\s+(\S+)is-isysroot\s+\S+(\s|$)N(sLDFLAGSRsLDSHAREDsCFLAGSRs	BLDSHARED(sLDFLAGSRsLDSHAREDsCFLAGSRs	BLDSHARED(sLDFLAGSRsLDSHAREDsCFLAGSRs	BLDSHARED(RRtglobalsRRRRRR
RtunameRZRRUtsubRARqRYRtexiststappend(targstfunctkernel_versiont
major_versiontkeytflagstarchRatsdktvalsR((s+/usr/lib64/python2.6/distutils/sysconfig.pyR@sX









cCsti|S(sReturn 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__RRURR
tdistutils.errorsRRtnormpathR#RRRRRRRRtlowerR RtpardirRRRRR&R,RMRPRTRdRVRlRpRrRRRRRRRR@R!(((s+/usr/lib64/python2.6/distutils/sysconfig.pyt<module>
sL!'+''			+>	+			N		O				]

haha - 2025