Your IP : 3.15.34.105


Current Path : /usr/lib64/python3.6/distutils/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/distutils/__pycache__/sysconfig.cpython-36.opt-2.pyc

3

/�Qg�N�@s�ddlZddlZddlZddlZddlmZejjej�Z	ejjej
�Zejjej�Z
ejjej�Zdejkr�ejjejd�Znejjejjej��Zejdkr�ej�jd+�r�ejjejje��Zdd	�Zeed
d�Zeo�ejdko�ej�jd,��r
ejjejje��Zdd�Ze�Zd
Zye�s*ejZWnek
�rBYnXdd�Z d-dd�Z!d.dd�Z"dd�Z#dd�Z$dd�Z%d/dd�Z&ej'd�Z(ej'd�Z)ej'd�Z*d0dd �Z+d!d"�Z,da-d#d$�Z.d%d&�Z/d'd(�Z0d)d*�Z1dS)1�N�)�DistutilsPlatformErrorZ_PYTHON_PROJECT_BASE�nt�\pcbuild\win32�\pcbuild\amd64cCs.x(dD] }tjjtjj|d|��rdSqWdS)N�
Setup.dist�Setup.local�ModulesTF)rr)�os�path�isfile�join)�d�fn�r�+/usr/lib64/python3.6/distutils/sysconfig.py�_is_python_source_dir)s
r�_homecCstrtt�Stt�S)N)�	_sys_homer�project_baserrrr�
_python_build2sr�cCsdtjdd�S)Nz%d.%d�)�sys�version_inforrrr�get_python_versionDsrcCs�|dkr|rtpt}tjdkrjtrL|r.tp,tStjjt	d�d�}tjj
|�Sdt�t}tjj|d|�Stjdkr�tjj|d�St
dtj��dS)N�posix�srcdirZInclude�python�includerzFI don't know where Python installs its C header files on platform '%s')�BASE_EXEC_PREFIX�BASE_PREFIXr
�name�python_buildrrrr
�get_config_var�normpathr�build_flagsr)�
plat_specific�prefixZincdirZ
python_dirrrr�get_python_incLs

r)cCs�|dkr&|r|rtpt}n|r"tp$t}tjdkrp|s8|r>d}nd}tjj||dt��}|r`|Stjj|d�Sn<tjdkr�|r�tjj|d�Stjj|dd�Snt	dtj��dS)	Nr�lib64�librz
site-packagesrZLibz?I don't know where Python installs its library on platform '%s')
r r!�EXEC_PREFIX�PREFIXr
r"rr
rr)r'�standard_libr(r+Z	libpythonrrr�get_python_libos(

r/c
Cs�|jdk�r�tjdkr8td�s8ddl}|jt�dtd<tdddd	d
ddd
d�	\	}}}}}}}}	}
dtj	kr�tj	d}tjdkr�dtj	kr�|j
|�r�||t|�d�}|}dtj	kr�tj	d}dtj	kr�tj	d}dtj	kr�tj	d}n|d}dtj	k�r|dtj	d}d	tj	k�r@|dtj	d	}|dtj	d	}dtj	k�r�|dtj	d}|dtj	d}|dtj	d}d
tj	k�r�tj	d
}	dtj	k�r�|	dtj	d}
n|	d|
}
|d|}|j|||d|||||
d�||_
dS)NZunix�darwinZCUSTOMIZED_OSX_COMPILERr�True�CC�CXX�OPT�CFLAGS�CCSHARED�LDSHARED�SHLIB_SUFFIX�AR�ARFLAGSZCPPz -E�LDFLAGS� �CPPFLAGS)Zpreprocessor�compilerZcompiler_soZcompiler_cxxZ	linker_soZ
linker_exe�archiver)Z
compiler_typer�platformr$�_osx_support�customize_compiler�_config_vars�get_config_varsr
�environ�
startswith�lenZset_executablesZshared_lib_extension)r>rAZccZcxx�optZcflagsZccsharedZldsharedZshlib_suffix�arZar_flagsZnewccZcppr?Zcc_cmdrrrrB�s\


 











rBcCsDtr,tjdkr"tjjtptd�}q6tp(t}n
tdd�}tjj|d�S)Nr�PCr)r'z
pyconfig-64.h)r#r
r"rr
rrr))�inc_dirrrr�get_config_h_filename�s


rLcCs\trtjjtptd�Stddd�}djt�t	�}t
tjd�rL|dtjj
7}tjj||d�S)N�Makefilerr)r'r.zconfig-{}{}�
_multiarchz-%s)r#r
rr
rrr/�formatrr&�hasattrr�implementationrN)Zlib_dirZconfig_filerrr�get_makefile_filename�srRcCs�|dkri}tjd�}tjd�}xx|j�}|s0P|j|�}|rz|jdd�\}}yt|�}Wntk
rnYnX|||<q"|j|�}|r"d||jd�<q"W|S)Nz"#define ([A-Z][A-Za-z0-9_]+) (.*)
z&/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/
rrr)�re�compile�readline�match�group�int�
ValueError)�fp�g�	define_rx�undef_rx�line�m�n�vrrr�parse_config_h�s(




rbz"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)z\$\(([A-Za-z][A-Za-z0-9_]*)\)z\${([A-Za-z][A-Za-z0-9_]*)}cCs�ddlm}||ddddd�}|dkr*i}i}i}x�|j�}|dkrFPtj|�}|r4|jdd�\}}	|	j�}	|	jdd�}
d	|
kr�|	||<q4yt|	�}	Wn$t	k
r�|	jdd	�||<Yq4X|	||<q4Wd}�x�|�r��x�t
|�D�]�}||}
tj|
��pt
j|
�}|�rx|jd�}d
}||k�r2t||�}n�||k�rBd}nx|tjk�rZtj|}n`||k�r�|jd��r�|dd�|k�r�d}n$d||k�r�d}nt|d|�}nd||<}|�r~|
|j�d�}|
d|j��||}
d	|k�r�|
||<nzyt|
�}
Wn"t	k
�r*|
j�||<Yn
X|
||<||=|jd��r~|dd�|k�r~|dd�}||k�r~|
||<q�||=q�Wq�W|j�x.|j�D]"\}}	t|	t��r�|	j�||<�q�W|j|�|S)Nr)�TextFiler�surrogateescape)Zstrip_commentsZskip_blanksZ
join_lines�errorsrz$$r�$r5r;r=TF�PY_�)r5r;r=)Zdistutils.text_filercrU�_variable_rxrVrW�strip�replacerXrY�list�_findvar1_rx�search�_findvar2_rx�strr
rErF�end�start�close�items�
isinstance�update)rr[rcrZ�done�notdoner^r_r`ra�tmpv�renamed_variablesr"�value�found�item�after�krrr�parse_makefiles�











r�cCsZxTtj|�ptj|�}|rP|j�\}}|d|�|j|jd��||d�}qPqW|S)Nrr)rmrnro�span�getrW)�s�varsr_Zbegrqrrr�expand_makefile_vars�s*r�c	CsVtjjddjtjtjttjdd�d��}t	|t
�t�dgd�}|j}ia
t
j|�dS)N�_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rNr)�abir@�	multiarch�build_time_varsr)r
rEr�rOr�abiflagsr@�getattrrQ�
__import__�globals�localsr�rCrv)r"�_tempr�rrr�_init_posix�sr�cCs~i}tddd�|d<tddd�|d<tdd�|d<tj�d|d<d	|d
<t�jdd�|d
<tjjtjj	t
j��|d<|adS)Nrr)r'r.�LIBDEST�
BINLIBDEST)r'�	INCLUDEPY�
EXT_SUFFIXz.exe�EXE�.r�VERSION�BINDIR)
r/r)�_imp�extension_suffixesrrkr
r�dirname�abspathr�
executablerC)r[rrr�_init_nt�sr�cGs^tdk�r(t�jdtj�}|r(|�niattd<ttd<tjd�}|dk	rV|td<tjdt�}tjdkr�tr�tj	j
t��}tj	j||�}ntj	j
t��}tj	j
tj	j|��td<to�tjdk�r
t}tj	jtd�o�|tj�k�r
tj	j|td�}tj	j|�td<tjdk�r(d	dl}|jt�|�rVg}x|D]}|jtj|���q8W|StSdS)
NZ_init_r(�exec_prefixr��SOrrr0r)rCr�r�r
r"r-r,rr#rr�rRr
r�r%�isabs�getcwdrr@rA�customize_config_vars�append)�args�funcr�r�baserA�valsr"rrrrD�s@




rDcCs*|dkrddl}|jdtd�t�j|�S)Nr�rz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningrDr�)r"r�rrrr$sr$)rr)rr)rN)rrN)N)N)2r�r
rSrrerrr%r(r-r�r,�base_prefixr!�base_exec_prefixr rEr�rr�r�r"�lower�endswithrr�rrr#r&r��AttributeErrorrr)r/rBrLrRrbrTrirmror�r�rCr�r�rDr$rrrr�<module>sX



#
+I





jJ

?>