6Uc @sdZdZddkZddkZddkZddkZddklZeii ei Z eii ei Z eiieiieiZeidjoBdedijo+eiieiieeiiZneidjoKded ijo4eiieiieeiieiiZneidjoKd ed ijo4eiieiieeiieiiZnd 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: s$Id$iN(tDistutilsPlatformErrortnttpcbuildis\pc\vis\pcbuild\amd64icCs?x8dD]0}tiitiitd|otSqWtS(Ns Setup.dists Setup.localtModules(s Setup.dists Setup.local(tostpathtisfiletjoint project_basetTruetFalse(tfn((s)/usr/lib/python2.6/distutils/sysconfig.pyt _python_build-s % cCs tid 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/lib/python2.6/distutils/sysconfig.pytget_python_version5sicCsq|d jo|otpt}ntidjotostiitiit i }|o |}n=tii tii |t d}tii |d}|Stii |ddtStidjotii |dStidjo5|otii |ddStii |dSn8tid jotii |dStd tid S( 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(tNonet EXEC_PREFIXtPREFIXRtnamet python_buildRtdirnametrealpathR t executabletabspathRtget_config_varRR(t plat_specifictprefixtbuildirtinc_dirR((s)/usr/lib/python2.6/distutils/sysconfig.pytget_python_inc=s. ! cCs|d jo|otpt}ntidjoBtii|ddt}|o|Stii|dSn7tidjoJ|otii|dStdjo|Stii|ddSntidjot|o8|otii|dd Stii|ddSq|otii|dStii|ddSnYtid jo5|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'. RtlibRs site-packagesRtLibs2.2Rs lib-dynloadRs?I don't know where Python installs its library on platform '%s'N( RRRRRRRRR(R"t standard_libR#t libpython((s)/usr/lib/python2.6/distutils/sysconfig.pytget_python_libhs:  c Csh|idjoTtddddddd\}}}}}}}d }d }|d }d tijo|d tid }ndtijo.|d tid}|d tid}ndtijoC|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. tunixtCCtCXXtOPTtCFLAGStCCSHAREDtLDSHAREDtSOs/usr/lib/python2.6/pyccs/usr/lib/python2.6/pyCCs -EtLDFLAGSt tCPPFLAGSt preprocessortcompilert compiler_sot compiler_cxxt linker_sot linker_exeN(t compiler_typetget_config_varsRtenvirontset_executablestshared_lib_extension( R8tcctcxxtopttcflagstccsharedtldsharedtso_exttcpptcc_cmd((s)/usr/lib/python2.6/distutils/sysconfig.pytcustomize_compilers0$  cCs|to3tidjotiitd}qIt}ntdd}tdjo d}nd}tii||S(s2Return full pathname of installed pyconfig.h file.RtPCR"is2.2sconfig.hs pyconfig.h(RRRRRRR&R(R%tconfig_h((s)/usr/lib/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/lib/python2.6/distutils/sysconfig.pytget_makefile_filenames 'cCs|djo h}ntid}tid}x|i}|pPn|i|}|oL|idd\}}yt|}Wntj onX|||x;dD]/}t|}t idd|}|t|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/lib/python2.6/distutils/sysconfig.pyR!Ys(.t__doc__t __revision__RRSRR tdistutils.errorsRRtnormpathR#RRRRRRRRtlowerR RtpardirR RRRR&R+RKRNRRRbRTRjRnRpR}RRRRRRR>R!(((s)/usr/lib/python2.6/distutils/sysconfig.pyt sL    !'+''   +: '   N  O    ]