i fZS @sdZddlZddlZddlZddlmZejjejZ ejjej Z ejjej Z ejjejZdejkrejjejdZn!ejjejjejZejdkr/ded1djkr/ejjejjeejjZnejdkrd ed2djkrejjejjeejjejjZnejdkrd ed3djkrejjejjeejjejjZnd dZeeddZerlejdkrlejjd4rlejjeZejdrlejjeZqlnddZeZdZyesej ZnWne!k rYnXddZ"ddddZ#dddddZ$ddZ%ddZ&ddZ'dd d!Z(ej)d"Z*ej)d#Z+ej)d$Z,dd%d&Z-d'd(Z.da/d)d*Z0d+d,Z1d-d.Z2d/d0Z3dS)5aProvide 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: N)DistutilsPlatformErrorZ_PYTHON_PROJECT_BASEntpcbuildz\pc\v z\pcbuild\amd64cCs=x6dD].}tjjtjj|d|rdSqWdS)N Setup.dist Setup.localModulesTF)r r )ospathisfilejoin)dfnr8/opt/alt/python34/lib64/python3.4/distutils/sysconfig.py_is_python_source_dir0s $r_home pcbuild\amd64cCstrttSttS)N) _sys_homer project_baserrrr _python_build;s rcCstjddS)zReturn a string containing the major and minor Python version, leaving off the patchlevel. Sample return values could be '1.5' or '2.2'. N)sysversionrrrrget_python_versionMsrcCs|dkr!|rtpt}ntjdkrtrtp?t}|rL|Strptjjtt d}ntjjt dd}tjj |Sdt t }tjj|d|Stjdkrtjj|dSt d tjdS) aReturn 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.base_prefix or sys.base_exec_prefix -- i.e., ignore 'plat_specific'. Nposix AST_H_DIRsrcdirIncludepythonincluderzFI don't know where Python installs its C header files on platform '%s')BASE_EXEC_PREFIX BASE_PREFIXr name python_buildrrr rget_config_varnormpathr build_flagsr) plat_specificprefixbaseZincdirZ python_dirrrrget_python_incUs$  r/cCs|dkr<|r'|rtp!t}q<|r3tp6t}ntjdkr|sW|r`d}nd}tjj||dt}|r|Stjj|dSnTtjdkr|rtjj|dStjj|ddSnt d tjdS) aSReturn 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.base_prefix or sys.base_exec_prefix -- i.e., ignore 'plat_specific'. Nrlib64libr#z site-packagesrZLibz?I don't know where Python installs its library on platform '%s') r%r& EXEC_PREFIXPREFIXr r'r rrr)r, standard_libr-r1Z libpythonrrrget_python_lib{s(    r5cCs|jdkrtjdkrStdsSddl}|jtdtdd|}t|drb|d|j}nt|WYdd}~XnXy/t}t|}t||WdQXWn^tk r}z>d|}t|dr|d|j}nt|WYdd}~XnXt r(|d|d|dkr.ddl}|jdtdntj|S)zReturn the value of a single variable using the dictionary returned by 'get_config_vars()'. Equivalent to get_config_vars().get(name) rrNz SO is deprecated, use EXT_SUFFIXrU)warningswarnDeprecationWarningrJr)r'rrrrr)1s  r)iii)rr)4__doc__r rVrrgrr r*r-r3rr2 base_prefixr&base_exec_prefixr%rKrrrrr'lowerrpardirrgetattrrendswithrr(r+abiflagsAttributeErrorrr/r5rHrQrTrerWrkrorqrrrIrrrJr)rrrr sf   !+*++     &+ I m  $  J