Your IP : 3.145.99.221


Current Path : /opt/alt/python33/lib64/python3.3/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/distutils/__pycache__/sysconfig.cpython-33.pyo

�
��f"Xc@s�dZddlZddlZddlZddlmZejjej�Z	ejjej
�Zejjej�Z
ejjej�Zdejkr�ejjejd�Zn!ejjejjej��Zejdkr/ded3d�j�kr/ejjejjeejj��Znejdkr�d	ed4d�j�kr�ejjejjeejjejj��Znejdkr�ded5d�j�kr�ejjejjeejjejj��Znd
d�Zeedd�Zerlejdkrlej�jd6�rlejje�Zejd�rlejje�Zqlndd�Ze�ZdZ yes�ej!Z nWne"k
r�YnXdd�Z#dddd�Z$ddddd�Z%dd�Z&dd�Z'dd�Z(dd d!�Z)ej*d"�Z+ej*d#�Z,ej*d$�Z-dd%d&�Z.d'd(�Z/da0d)d*�Z1d+d,�Z2d-d.�Z3d/d0�Z4d1d2�Z5dS(7u�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:        <fdrake@acm.org>
iNi(uDistutilsPlatformErroru_PYTHON_PROJECT_BASEuntupcbuildiu\pc\vi
u\pcbuild\amd64icCs=x6dD].}tjjtjj|d|��rdSqWdS(Nu
Setup.distuSetup.localuModules(u
Setup.distuSetup.localTF(uosupathuisfileujoinuTrueuFalse(udufn((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu_is_python_source_dir0s
$u_is_python_source_diru_homeu
pcbuild\amd64cCstrtt�Stt�S(N(u	_sys_homeu_is_python_source_diruproject_base(((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu
_python_build;s
u
_python_builducCstjdd�S(u�Return a string containing the major and minor Python version,
    leaving off the patchlevel.  Sample return values could be '1.5'
    or '2.2'.
    Ni(usysuversion(((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_python_versionMsuget_python_versioncCs|d
kr!|rtpt}ntjdkr�tr�tp?t}|rL|Strptjj	tt
d��}ntjj	t
d�d�}tjj|�Sdt�t
}tjj	|d|�Stjdkr�tjj	|d�Stjdkrtjj	|d�Std	tj��d
S(u�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.base_prefix or
    sys.base_exec_prefix -- i.e., ignore 'plat_specific'.
    uposixu	AST_H_DIRusrcdiruIncludeupythonuincludeuntuos2uFI don't know where Python installs its C header files on platform '%s'N(uNoneuBASE_EXEC_PREFIXuBASE_PREFIXuosunameupython_buildu	_sys_homeuproject_baseupathujoinuget_config_varunormpathuget_python_versionubuild_flagsuDistutilsPlatformError(u
plat_specificuprefixubaseuincdiru
python_dir((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_python_incUs(uget_python_inccCsQ|dkr<|r'|rtp!t}q<|r3tp6t}ntjdkr�|sW|r`d}nd}tjj||dt	��}|r�|Stjj|d�Sn�tjdkr�|r�tjj|d�St	�dkr�|Stjj|dd�SnTtjd	kr:|r!tjj|d�Stjj|dd�Snt
d
tj��dS(uSReturn 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'.
    uposixulib64ulibupythonu
site-packagesuntuLibu2.2uos2u?I don't know where Python installs its library on platform '%s'N(uNoneuBASE_EXEC_PREFIXuBASE_PREFIXuEXEC_PREFIXuPREFIXuosunameupathujoinuget_python_versionuDistutilsPlatformError(u
plat_specificustandard_libuprefixulibu	libpython((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_python_lib}s4	uget_python_libcCs�|jdkr�tjdkrYtjdd�sYddl}|jt�dtd<qYntdd	d
ddd
ddd�	\	}}}}}}}}	}
dtj	krtj	d}tjdkr�d
tj	kr�|j
|�r�||t|�d�}n|}nd	tj	kr&tj	d	}nd
tj	krEtj	d
}ndtj	krdtj	d}n
|d}dtj	kr�|dtj	d}ndtj	kr�|dtj	d}|dtj	d}ndtj	kr"|dtj	d}|dtj	d}|dtj	d}ndtj	krAtj	d}	ndtj	krh|	dtj	d}
n|	d|
}
|d|}|jd|d|d|d|d|d|d|d|
�||_
ndS(u�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.
    uunixudarwinuCUSTOMIZED_OSX_COMPILERuiNuTrueuCCuCXXuOPTuCFLAGSuCCSHAREDuLDSHAREDuSHLIB_SUFFIXuARuARFLAGSuCPPu -EuLDFLAGSu uCPPFLAGSupreprocessorucompilerucompiler_soucompiler_cxxu	linker_sou
linker_exeuarchiver(u
compiler_typeusysuplatformu_config_varsugetu_osx_supportucustomize_compileruget_config_varsuosuenvironu
startswithulenuset_executablesushared_lib_extension(ucompileru_osx_supportuccucxxuoptucflagsuccshareduldsharedushlib_suffixuaruar_flagsunewccucppuarchiverucc_cmd((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyucustomize_compiler�s\

0
	
	ucustomize_compilercCs�trBtjdkr3tjjtp'td�}qQtp<t}ntdd�}t�dkrid}nd}tjj||�S(u2Return full pathname of installed pyconfig.h file.untuPCu
plat_specificiu2.2uconfig.hu
pyconfig-64.h(	upython_builduosunameupathujoinu	_sys_homeuproject_baseuget_python_incuget_python_version(uinc_diruconfig_h((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_config_h_filename�s	uget_config_h_filenamecCs_trtjjtptd�Stdddd�}djt�t	�}tjj||d�S(uAReturn full pathname of installed Makefile from the Python build.uMakefileu
plat_specificiustandard_libiuconfig-{}{}(
upython_builduosupathujoinu	_sys_homeuproject_baseuget_python_libuformatuget_python_versionubuild_flags(ulib_diruconfig_file((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_makefile_filename	s
uget_makefile_filenamecCs�|dkri}ntjd�}tjd�}x�|j�}|sLPn|j|�}|r�|jdd�\}}yt|�}Wntk
r�YnX|||<q6|j|�}|r6d||jd�<q6q6|S(u�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.
    u"#define ([A-Z][A-Za-z0-9_]+) (.*)
u&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
iiiN(uNoneureucompileureadlineumatchugroupuintu
ValueError(ufpugu	define_rxuundef_rxulineumunuv((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuparse_config_hs(	

uparse_config_hu"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)u\$\(([A-Za-z][A-Za-z0-9_]*)\)u\${([A-Za-z][A-Za-z0-9_]*)}cCs�ddlm}||dddddddd�}|dkrIi}ni}i}x�|j�}|dkrtPntj|�}|rX|jdd	�\}}	|	j�}	|	jd
d�}
d|
kr�|	||<q yt	|	�}	Wn(t
k
r|	jd
d�||<Yq X|	||<qXqXd}xG|rrx:t|�D],}||}
tj
|
�pjtj
|
�}|rd|jd�}d}||kr�t||�}n�||kr�d}n�|tjkr�tj|}nx||krE|jd�r|dd�|krd}qSd||kr.d}qSt|d|�}nd||<}|rk|
|j�d�}|
d|j��}
|j�|
kr�|
|7}
n|
|7}
d|kr�|
||<qayt	|
�}
Wn"t
k
r�|
j�||<YnX|
||<||=|jd�ra|dd�|kra|dd�}||kr^|
||<q^qaqkq?||=q?Wq,W|j�x<|j�D].\}}	t|	t�r�|	j�||<q�q�W|j|�|S(u�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.
    i(uTextFileustrip_commentsiuskip_blanksu
join_linesuerrorsusurrogateescapeiu$$uu$uCFLAGSuLDFLAGSuCPPFLAGSuPY_iN(uCFLAGSuLDFLAGSuCPPFLAGSTF(udistutils.text_fileuTextFileuNoneureadlineu_variable_rxumatchugroupustripureplaceuintu
ValueErrorulistu_findvar1_rxusearchu_findvar2_rxuTrueustruFalseuosuenvironu
startswithuendustartucloseuitemsu
isinstanceuupdate(ufnuguTextFileufpudoneunotdoneulineumunuvutmpvurenamed_variablesunameuvalueufounduitemuafteruk((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuparse_makefile5s�$	

	
	%		






uparse_makefilecCsxxqtj|�ptj|�}|rp|j�\}}|d|�|j|jd��||d�}qPq|S(u�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(u_findvar1_rxusearchu_findvar2_rxuspanugetugroup(usuvarsumubeguend((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuexpand_makefile_vars�s7uexpand_makefile_varsc Cs�i}yt�}t||�Wn^tk
r�}z>d|}t|d�rb|d|j}nt|��WYdd}~XnXy/t�}t|��}t||�WdQXWn^tk
r}z>d|}t|d�r�|d|j}nt|��WYdd}~XnXt	r(|d|d<n~t
�dkr�tjdkr�t
d	d
�}tjj|dd�}tjj|dd
�}d||d|f|d<q�n|adS(u7Initialize the module as appropriate for POSIX systems.u.invalid Python installation: unable to open %sustrerroru (%s)Nu	BLDSHAREDuLDSHAREDu2.1uaix4ustandard_libiuconfigu	ld_so_aixu
python.expu%s %s -bI:%suCC(uget_makefile_filenameuparse_makefileuIOErroruhasattrustrerroruDistutilsPlatformErroruget_config_h_filenameuopenuparse_config_hupython_builduget_python_versionusysuplatformuget_python_libuosupathujoinu_config_vars(ugufilenameumsgumy_msgufileu
python_libu	ld_so_aixu
python_exp((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu_init_posix�s6	
	
!u_init_posixcCs�i}tdddd�|d<tdddd�|d<tdd�|d<d|d	<d|d
<d|d<t�jd
d�|d<tjjtjjtj	��|d<|a
dS(u+Initialize the module as appropriate for NTu
plat_specificiustandard_libiuLIBDESTu
BINLIBDESTu	INCLUDEPYu.pyduSOu
EXT_SUFFIXu.exeuEXEu.uuVERSIONuBINDIRN(uget_python_libuget_python_incuget_python_versionureplaceuosupathudirnameuabspathusysu
executableu_config_vars(ug((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu_init_nt�s


%u_init_ntcCssi}tdddd�|d<tdddd�|d<tdd�|d<d|d	<d|d
<d|d<|ad
S(u-Initialize the module as appropriate for OS/2u
plat_specificiustandard_libiuLIBDESTu
BINLIBDESTu	INCLUDEPYu.pyduSOu
EXT_SUFFIXu.exeuEXEN(uget_python_libuget_python_incu_config_vars(ug((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu	_init_os2s


u	_init_os2cGs�tdkr�t�jdtj�}|r5|�niattd<ttd<tjdt�}tjdkr�t	r�tj
jt��}tj
j
||�}q�tj
jt��}ntj
jtj
j|��td<t	rVtjdkrVt}tj
jtd�rV|tj�krVtj
j
|td�}tj
j|�td<qVntjdkr�ddl}|jt�q�n|r�g}x$|D]}|jtj|��q�W|StSdS(	u�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 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.
    u_init_uprefixuexec_prefixusrcdiruposixudarwiniN(u_config_varsuNoneuglobalsugetuosunameuPREFIXuEXEC_PREFIXuproject_baseupython_buildupathudirnameuget_makefile_filenameujoinuabspathunormpathuisabsugetcwdusysuplatformu_osx_supportucustomize_config_varsuappend(uargsufuncusrcdirubaseu_osx_supportuvalsuname((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_config_varss:


"
uget_config_varscCst�j|�S(u�Return the value of a single variable using the dictionary
    returned by 'get_config_vars()'.  Equivalent to
    get_config_vars().get(name)
    (uget_config_varsuget(uname((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyuget_config_varWsuget_config_vari����i����i�(upcbuildu
pcbuild\amd64(6u__doc__uosureusysuerrorsuDistutilsPlatformErrorupathunormpathuprefixuPREFIXuexec_prefixuEXEC_PREFIXubase_prefixuBASE_PREFIXubase_exec_prefixuBASE_EXEC_PREFIXuenvironuabspathuproject_baseudirnameu
executableunameulowerujoinupardiru_is_python_source_dirugetattruNoneu	_sys_homeuendswithu
_python_buildupython_buildubuild_flagsuabiflagsuAttributeErroruget_python_versionuget_python_incuget_python_libucustomize_compileruget_config_h_filenameuget_makefile_filenameuparse_config_hucompileu_variable_rxu_findvar1_rxu_findvar2_rxuparse_makefileuexpand_makefile_varsu_config_varsu_init_posixu_init_ntu	_init_os2uget_config_varsuget_config_var(((u8/opt/alt/python33/lib64/python3.3/distutils/sysconfig.pyu<module>
sh!+*++	
(3H	m/E

?>