Hacked By AnonymousFox

Current Path : /opt/alt/python37/lib64/python3.7/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/distutils/__pycache__/sysconfig.cpython-37.opt-2.pyc

B

 f�P�@s�ddlZddlZddlZddlZddlmZej�ej�Z	ej�ej
�Zej�ej�Z
ej�ej�Zdejkr�ej�ejd�Zn&ejr�ej�ej�ej��Zne��Zdd�Zeedd�Zejdkr�d	d
�Zee�Zee�Zdd�Ze�Zd
Zyes�ejZWnek
�rYnXdd�Z d+dd�Z!d,dd�Z"dd�Z#dd�Z$dd�Z%d-dd�Z&e�'d�Z(e�'d�Z)e�'d�Z*d.dd �Z+d!d"�Z,da-d#d$�Z.d%d&�Z/d'd(�Z0d)d*�Z1dS)/�N�)�DistutilsPlatformErrorZ_PYTHON_PROJECT_BASEcCs.x(dD] }tj�tj�|d|��rdSqWdS)N)z
Setup.distzSetup.localZModulesTF)�os�path�isfile�join)�d�fn�r
�8/opt/alt/python37/lib64/python3.7/distutils/sysconfig.py�_is_python_source_dir,s
r�_home�ntcCs0|r,tj�|��tj�tj�td���r,tS|S)NZPCbuild)rr�normcase�
startswithr�PREFIX)rr
r
r�_fix_pcbuild5srcCstrtt�Stt�S)N)�	_sys_homer�project_baser
r
r
r�
_python_build=sr�cCsdtjdd�S)Nz%d.%d�)�sys�version_infor
r
r
r�get_python_versionQsrcCs�|dkr|rtpt}tjdkrjtrL|r.tp,tStj�t	d�d�}tj�
|�Sdt�t}tj�|d|�Stjdkr�tr�tj�|d�tjj
tj�|d�Stj�|d�Stdtj��dS)	N�posix�srcdirZInclude�pythonZincluder�PCzFI 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_flags�pathsepr)�
plat_specific�prefixZincdirZ
python_dirr
r
r�get_python_incYs$

r)cCs�|dkr&|r|rtpt}n|r"tp$t}tjdkrp|s8|r>d}nd}tj�||dt��}|r`|Stj�|d�Sn<tjdkr�|r�tj�|d�Stj�|dd�Snt	dtj��dS)	Nr�lib64�librz
site-packagesrZLibz?I don't know where Python installs its library on platform '%s')
rr �EXEC_PREFIXrrr!rrrr)r'�standard_libr(r+Z	libpythonr
r
r�get_python_lib�s(

r.c	Cs�|jdk�r�tjdkr8td�s8ddl}|�t�dtd<tdddd	d
ddd
�\}}}}}}}}	dtj	kr�tj	d}
tjdkr�d
tj	kr�|�
|�r�|
|t|�d�}|
}dtj	kr�tj	d}d
tj	kr�tj	d
}dtj	kr�tj	d}n|d}dtj	k�r|dtj	d}dtj	k�r<|dtj	d}|dtj	d}dtj	k�r~|dtj	d}|dtj	d}|dtj	d}dtj	k�r�tj	d}d
tj	k�r�|dtj	d
}n|d|	}|d|}
|j||
|
d|||||d�||_
dS)NZunix�darwinZCUSTOMIZED_OSX_COMPILERr�TrueZCCZCXX�CFLAGSZCCSHAREDZLDSHAREDZSHLIB_SUFFIXZARZARFLAGSZCPPz -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�environr�lenZset_executablesZshared_lib_extension)r5r8ZccZcxxZcflagsZccsharedZldsharedZshlib_suffix�arZar_flagsZnewccZcppr6Zcc_cmdr
r
rr9�s\













r9cCsDtr,tjdkr"tj�tptd�}q6tp(t}n
tdd�}tj�|d�S)Nrrr)r'z
pyconfig.h)r"rr!rrrrr))Zinc_dirr
r
r�get_config_h_filename�s


r?cCs\trtj�tptd�Stddd�}d�t�t	�}t
tjd�rL|dtjj
7}tj�||d�S)NZMakefilerr)r'r-zconfig-{}{}�
_multiarchz-%s)r"rrrrrr.�formatrr%�hasattrr�implementationr@)Zlib_dirZconfig_filer
r
r�get_makefile_filenamesrDcCs�|dkri}t�d�}t�d�}xx|��}|s0P|�|�}|rz|�dd�\}}yt|�}Wntk
rnYnX|||<q"|�|�}|r"d||�d�<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�gZ	define_rxZundef_rx�line�m�n�vr
r
r�parse_config_h
s(




rRz"([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�|��}|dkrFPt�|�}|r4|�dd�\}}	|	��}	|	�dd�}
d	|
kr�|	||<q4yt|	�}	Wn$t	k
r�|	�dd	�||<Yq4X|	||<q4Wd
}�x�|�r��x�t
|�D�]�}||}
t�|
��pt
�|
�}|�r�|�d�}d}||k�r2t||�}n�||k�rBd}nx|tjk�rZtj|}n`||k�r�|�d
��r�|dd�|k�r�d}n$d
||k�r�d}nt|d
|�}nd||<}|�r�|
|��d�}|
d|���}
|��|
k�r�|
|7}
|
|7}
d	|k�r|
||<nzyt|
�}
Wn"t	k
�r@|
��||<Yn
X|
||<||=|�d
��r�|dd�|k�r�|dd�}||k�r�|
||<q�||=q�Wq�W|��x.|��D]"\}}	t|	t��r�|	��||<�q�W|�|�|S)Nr)�TextFiler�surrogateescape)Zstrip_commentsZskip_blanksZ
join_lines�errorsrz$$r�$)r1r2r4TFZPY_�)Zdistutils.text_filerSrG�_variable_rxrHrI�strip�replacerJrK�list�_findvar1_rx�search�_findvar2_rx�strrr<r�end�start�close�items�
isinstance�update)r	rMrSrLZdoneZnotdonerNrOrPrQZtmpvZrenamed_variablesr!�value�found�itemZafter�kr
r
r�parse_makefile0s�











rjcCsZxTt�|�pt�|�}|rP|��\}}|d|�|�|�d��||d�}qPqW|S)Nrr)r\r]r^�span�getrI)�s�varsrOZbegr`r
r
r�expand_makefile_vars�s*roc
CsVtj�ddjtjtjttjdd�d��}t	|t
�t�dgd�}|j}ia
t
�|�dS)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}r@r)Zabir7Z	multiarch�build_time_varsr)rr<rlrAr�abiflagsr7�getattrrC�
__import__�globals�localsrpr:re)r!Z_temprpr
r
r�_init_posix�srvcCs~i}tddd�|d<tddd�|d<tdd�|d<t��d|d<d	|d
<t��dd�|d
<tj�tj�	t
j��|d<|adS)Nrr)r'r-ZLIBDESTZ
BINLIBDEST)r'Z	INCLUDEPY�
EXT_SUFFIXz.exeZEXE�.rZVERSIONZBINDIR)
r.r)�_imp�extension_suffixesrrZrr�dirname�abspathr�
executabler:)rMr
r
r�_init_nt�sr~cGs`tdk�r*t��dtj�}|r(|�niattd<ttd<t�d�}|dk	rV|td<t�dt�}tjdkr�tr�tj	�
t��}tj	�||�}ntj	�
t��}tj	�
tj	�|��td<t�rtjdk�rt}tj	�td��s|t��k�rtj	�|td�}tj	�|�td<tjdk�r*d	dl}|�t�|�rXg}x|D]}|�t�|���q:W|StSdS)
NZ_init_r(�exec_prefixrw�SOrrr/r)r:rtrlrr!rr,rr"rr{rDrr|r$�isabs�getcwdrr7r8Zcustomize_config_vars�append)�args�funcr�r�baser8Zvalsr!r
r
rr;�s@




r;cCs*|dkrddl}|�dtd�t��|�S)Nr�rz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningr;rl)r!r�r
r
rr#%sr#)rN)rrN)N)N)2ryrrErrUrrr$r(rrr,�base_prefixr �base_exec_prefixrr<r|rr}r{r�rrrrr!rrr"r%rq�AttributeErrorrr)r.r9r?rDrRrFrXr\r^rjror:rvr~r;r#r
r
r
r�<module>sX



(
+I





mJ

Hacked By AnonymousFox1.0, Coded By AnonymousFox