MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/task/2/root/usr/lib/python2.4/distutils/sysconfig.pyc
mò
YíPc@s‹dZdZdkZdkZdkZdkZdklZeii	ei
ƒZeii	eiƒZ
eiieiieiƒƒZeiieddƒZeiieƒZ[[d„Zddd„Zdddd	„Zd
„Zd„Zd„Zdd
„ZeidƒZeidƒZ eidƒZ!dd„Z"d„Z#da$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*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>
s9$Id: sysconfig.py 38201 2005-01-06 23:16:03Z jackjansen $N(sDistutilsPlatformErrortModulestSetupcCstid 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'.
    iN(tsystversion(((t)/usr/lib/python2.4/distutils/sysconfig.pytget_python_version%sicCs•|djo|otpt}ntidjo³to‡tii	tii
tiƒƒ}|o
|}nNtii|dƒ}tii|ƒp%tiitii	|ƒdƒ}n|Sntii|ddtid ƒSnªtidjotii|dƒSnƒtidjo8|otii|ddƒSq‘tii|dƒSn;tid	jotii|dƒSntd
tiƒ‚dS(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'.
    tposixtIncludetincludetpythonitnttmactMactos2sFI don't know where Python installs its C header files on platform '%s'N(tprefixtNonet
plat_specifictEXEC_PREFIXtPREFIXtostnametpython_buildtpathtdirnametabspathRt
executabletbasetinc_dirtjointexistsRtDistutilsPlatformError(RRRR((Rtget_python_inc-s,

!
%%cCsÃ|djo|otpt}ntidjoEtii|ddt	ƒƒ}|o|Sq¿tii|dƒSnFtidjoP|otii|dƒSq¿ti
djo|Sq¿tiitddƒSnætidjoz|o;|otii|dd	ƒSq`tii|ddƒSq¿|otii|dƒSq¿tii|ddƒSn\tid
jo8|otiitdƒSq¿tiitddƒSntdtiƒ‚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'.
    RtlibR	s
site-packagesR
tLibs2.2Rslib-dynloadR
s?I don't know where Python installs its library on platform '%s'N(RRRRRRRRRRt	libpythontstandard_libRRR(RR#RR"((Rtget_python_libTs8

c

Cs|idjoútdddddddƒ\}}}}}	}}t
iidƒot
id}nt
iidƒot
id}nt
iidƒot
id}nt
iid	ƒot
id	}n|d
}t
iidƒo|dt
id}n|o|d|}nt
iid
ƒo.|dt
id
}|dt
id
}nt
iidƒoC|dt
id}|dt
id}|dt
id}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.
    tunixtCCtCXXtOPTt
BASECFLAGStCCSHAREDtLDSHAREDtSOtCPPs -EtLDFLAGSt tCFLAGStCPPFLAGStpreprocessortcompilertcompiler_sotcompiler_cxxt	linker_sot
linker_exeN(R3t
compiler_typetget_config_varstcctcxxtoptt
basecflagstccsharedtldsharedtso_extRtenvironthas_keytcpptcc_cmdtset_executablestshared_lib_extension(
R3R<RDR=R:R;RCR?R@R>((Rtcustomize_compilerŽs>3

cCsVto
ti}ntddƒ}tidjo
d}nd}tii	||ƒS(s2Return full pathname of installed pyconfig.h file.Ris2.2sconfig.hs
pyconfig-32.hN(
RRtcurdirRRRRtconfig_hRR(RRI((Rtget_config_h_filenameºs

cCsXto&tiitiitiƒdƒSntddddƒ}tii|ddƒS(sAReturn full pathname of installed Makefile from the Python build.tMakefileRiR#tconfigN(	RRRRRRRR$tlib_dir(RM((Rtget_makefile_filenameÈs
&cCsè|djo
h}ntidƒ}tidƒ}x¬|iƒ}|pPn|i	|ƒ}|oL|iddƒ\}}yt|ƒ}Wntj
onX|||<q8|i	|ƒ}|od||idƒ<q8q8W|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-Z0-9_]+) (.*)
s#/[*] #undef ([A-Z][A-Z0-9_]+) [*]/
iiiN(tgRtretcompilet	define_rxtundef_rxtfptreadlinetlinetmatchtmtgrouptntvtintt
ValueError(RTRORXRSRZR[RVRR((Rtparse_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Ýdkl}||ddddddƒ}|d	jo
h}nh}h}	x¯|iƒ}
|
d	joPnt
i|
ƒ}|ov|i
ddƒ\}}ti|ƒ}d|jo||	|<qûyt|ƒ}Wntj
onX|||<qQqQWx¿|	o·x°|	iƒD]¢}|	|}ti|ƒp
ti|ƒ}|oe|i
dƒ}|i|ƒo›||iƒ}||iƒ t||ƒ|}d|jo||	|<q®yt|ƒ}Wn&tj
oti|ƒ||<nX|||<|	|=q¹|	i|ƒoq¹d||<||iƒ}||iƒ |}d|jo||	|<q¹yt|ƒ}Wn&tj
oti|ƒ||<nX|||<|	|=q|	|=qWqW|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.
    (sTextFiletstrip_commentsitskip_blankst
join_linesit$tN(!tdistutils.text_filetTextFiletfnRTRORtdonetnotdoneRURVt_variable_rxRWRXRYRZR[tstringtstripR\R]tkeysRtvaluet_findvar1_rxtsearcht_findvar2_rxRBtendtaftertstarttstrtclosetupdate(
RfRORTRrRXRmRZRgR[RhRVReR((Rtparse_makefileósv






"






cCstxmti|ƒp
ti|ƒ}|oA|iƒ\}}|d|!|i	|i
dƒƒ||}qPqW|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'.
    iiN(RnRotsRpRXtspantbegRqtvarstgetRY(RxR{RqRXRz((Rtexpand_makefile_vars?s/cCs1h}	ytƒ}t||	ƒWnPtj
oD}d|}t|dƒo|d|i}nt	|ƒ‚nXt
idjo„|	idƒot|	d}
tiddƒ}|djo|
}tid|
ƒn|
|jo d||
f}t	|ƒ‚qnto|	d	|	d
<nt
idjo÷t
idjo^td
dƒ}tii|ddƒ}tii|ddƒ}d||	d|f|	d
<q't
idjoutd
dƒ}ti|	d
ƒd}tii|ƒ}tii|d|ƒ}d|t t
idd!f|	d
<q'n|	a!dS(s7Initialize the module as appropriate for POSIX systems.s.invalid Python installation: unable to open %ststrerrors (%s)tdarwint"CONFIGURE_MACOSX_DEPLOYMENT_TARGETtMACOSX_DEPLOYMENT_TARGETRcsF$MACOSX_DEPLOYMENT_TARGET mismatch: now "%s" but "%s" during configuret	BLDSHAREDR+s2.1taix4R#iRLt	ld_so_aixs
python.exps%s %s -bI:%sR&tbeosis%s -L%s/lib -lpython%siN("RORNtfilenameRwtIOErrortmsgtmy_msgthasattrR~RRtplatformRBt
cfg_targetRtgetenvt
cur_targettputenvRRR$t
python_libRRR„t
python_expRjtsplittlinkerscript_pathtbasenametlinkerscript_nametlinkerscriptRt_config_vars(RŽR–R†RˆR‰R„R“RR•RORŒR‘((Rt_init_posixZsH	
 


	)cCsih}tddddƒ|d<tddddƒ|d<tddƒ|d<d|d	<d
|d<|adS(
s+Initialize the module as appropriate for NTRiR#itLIBDESTt
BINLIBDESTt	INCLUDEPYs.pydR,s.exetEXEN(ROR$RR—(RO((Rt_init_ntžs

cCsÌh}tddddƒ|d<tddddƒ|d<tddƒ|d<dk}t|d	ƒpd
|d<nd|i|d<tiit	d
ƒ|d<tiit	dd
ƒ|d<d|d<|a
dS(s:Initialize the module as appropriate for Macintosh systemsRiR#iR™RšR›Ntruntimemodels.ppc.slbR,s.%s.slbR!tinstall_libRtinstall_platlibt:tsrcdir(ROR$RtMacOSRŠRžRRRRR—(R£RO((Rt	_init_mac¯s	
cCsih}tddddƒ|d<tddddƒ|d<tddƒ|d<d|d	<d
|d<|adS(
s-Initialize the module as appropriate for OS/2RiR#iR™RšR›s.pydR,s.exeRœN(ROR$RR—(RO((Rt	_init_os2És

cGsštdjoItƒidtiƒ}|o|ƒnhattd<ttd<n|o5g}x$|D]}|iti|ƒƒqjW|SntSdS(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_Rtexec_prefixN(R—RtglobalsR|RRtfuncRRtargstvalstappend(RªRR©R«((RR9Ús 	

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)
    N(R9R|R(R((Rtget_config_varús(+t__doc__t__revision__RRPRjRterrorsRRtnormpathRRR§RRRRt
argv0_pathRtlandmarktisfileRRRRR$RGRJRNR^RQRiRnRpRwR}R—R˜RR¤R¥R9R­(R­RRR9R²RGR¯RPRRR}RJR˜RRiRjRwRR^RRnRNRpR¤RR¥R³RR$((Rt?
s>				
!	':	,		L		D