� �fc@s�dZdZddlZddlZddlZddlZddlmZejj ej �Z ejj ej �Z ejr�ejjejjej��Zn ej�Zejdkr�dedj�kr�ejjejjeejj��ZnejdkrVded j�krVejjejjeejjejj��Znejdkr�d ed j�kr�ejjejjeejjejj��Znd ejkr�ejj ejd �Znd �Ze�Zd�Zddd�Zdddd�Zd�Zd�Zd�Z dd�Z!ej"d�Z#ej"d�Z$ej"d�Z%dd�Z&d�Z'da(d�Z)d�Z*d�Z+d�Z,d�Z-dS( s�Provide 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$i����N(tDistutilsPlatformErrortnttpcbuildi����s\pc\vi����s\pcbuild\amd64i����t_PYTHON_PROJECT_BASEcCs=x6dD].}tjjtjjtd|��rtSqWtS(Ns Setup.dists Setup.localtModules(s Setup.dists Setup.local(tostpathtisfiletjoint project_basetTruetFalse(tfn((s+/usr/lib64/python2.7/distutils/sysconfig.pyt _python_build7s $cCs tjd 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'. i(tsystversion(((s+/usr/lib64/python2.7/distutils/sysconfig.pytget_python_version?sicCs=|d kr!|rtpt}ntjdkr�tr�tjrWtjj tj�}n tj �}|rr|}n<tjj tjj |t d���}tjj |d�}|Stjj |ddt�tjr�dp�d�Stjdkrtjj |d�Stjd kr&tjj |d�Std tj��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'. tposixtsrcdirtIncludetincludetpythons-debugtRtos2sFI don't know where Python installs its C header files on platform '%s'N(tNonet EXEC_PREFIXtPREFIXRtnamet python_buildRt executableRtdirnametgetcwdtabspathRtget_config_varRtpydebugR(t plat_specifictprefixtbuildirtinc_dirR((s+/usr/lib64/python2.7/distutils/sysconfig.pytget_python_incGs,    !cCs6|d kr!|rtpt}ntjdkr�|s<|rEd}nd}tjj||dt��}|rt|Stjj|d�Sn�tjdkr�|r�tjj|d�St�dkr�|Stjj|dd�SnTtjd kr|rtjj|d�Stjj|dd�Sntd tj��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'. Rtlib64tlibRs site-packagesRtLibs2.2Rs?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.7/distutils/sysconfig.pytget_python_libss0    cCs�|jdkr�tjdkrStd�sSddl}|jt�dtdRFtcctcxxtcflagstccsharedtldsharedtso_exttartar_flagstnewcctcppRCtcc_cmd((s+/usr/lib64/python2.7/distutils/sysconfig.pyRG�s^     !    cCsvtr6tjdkr-tjjtd�}qEt}ntdd�}t�dkr]d}nd}tjj||�S(s2Return full pathname of installed pyconfig.h file.RtPCR#is2.2sconfig.hs pyconfig-64.h(RRRRRR R'R(R&tconfig_h((s+/usr/lib64/python2.7/distutils/sysconfig.pytget_config_h_filename�s  cCsWtrtjjtd�Stdddd�}tjj|dtjrLdpOdd�S(sAReturn full pathname of installed Makefile from the Python build.tMakefileR#iR+tconfigs-debugR(RRRRR R-RR"(tlib_dir((s+/usr/lib64/python2.7/distutils/sysconfig.pytget_makefile_filenamescCs�|dkri}ntjd�}tjd�}x�|j�}|sLPn|j|�}|r�|jdd�\}}yt|�}Wntk r�nX||| sR     $ %*%%   ,3 J    S    &