mò E8)Ec@s‹dZdZdkZdkZdkZdkZdklZeii ei ƒZ eii 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: s>$Id: sysconfig.py 52231 2006-10-08 17:41:25Z ronald.oussoren $N(sDistutilsPlatformErrortModulestSetupcCs 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'. iN(tsystversion(((t9/mirror/zmath/src/Python-2.4.4/Lib/distutils/sysconfig.pytget_python_version%sicCs•|d jo|otpt}ntidjo³to‡tii tii t i ƒƒ}|o |}nNtii|dƒ}tii|ƒp%tiitii |ƒdƒ}n|Sntii|ddt id ƒSnªtidjotii|dƒSnƒtidjo8|otii|ddƒSq‘tii|dƒSn;tid jotii|dƒSntd 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'. tposixtIncludetincludetpythonitnttmactMactos2sFI don't know where Python installs its C header files on platform '%s'N(tprefixtNonet plat_specifict EXEC_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ƒ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'. RtlibR s site-packagesR tLibs2.2R s lib-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 i i dƒot i d}nt i i dƒot i d}nt i i dƒot i d}nt i i d ƒot i d }n |d }t i i d ƒo|d t i d }n|o|d |}nt i i d ƒo.|d t i d }|d t i d }nt i i dƒoC|d t i d}|d t i d}|d t i d}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 preprocessortcompilert compiler_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.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|i ddƒ\}}yt|ƒ}Wntj onX|||     ! ': ,    L  D    2