Your IP : 3.21.247.221


Current Path : /lib64/python3.8/distutils/__pycache__/
Upload File :
Current File : //lib64/python3.8/distutils/__pycache__/sysconfig.cpython-38.opt-2.pyc

U

��.eP�@s�ddlZddlZddlZddlZddlmZddlmZmZej	�
ej�Zej	�
ej
�Zej	�
ej�Zej	�
ej�Zdejkr�ej	�ejd�Zn&ejr�ej	�ej	�ej��Zne��Zdd�Zeedd�Zejd	kr�d
d�Zee�Zee�Zdd
�Ze�ZdZ ze�sej!Z Wne"k
�r&YnXdd�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/d d!�Z.d"d#�Z/da0d$d%�Z1d&d'�Z2d(d)�Z3d*d+�Z4dS)0�N�)�DistutilsPlatformError)�get_platform�get_host_platformZ_PYTHON_PROJECT_BASEcCs,dD]"}tj�tj�|d|��rdSqdS)N)ZSetupzSetup.localZModulesTF)�os�path�isfile�join)�d�fn�r�+/usr/lib64/python3.8/distutils/sysconfig.py�_is_python_source_dir+sr�_home�ntcCs0|r,tj�|��tj�tj�td���r,tS|S)NZPCbuild)rr�normcase�
startswithr	�PREFIX)r
rrr
�_fix_pcbuild4s
�rcCstr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_versionPsrcCs�|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_incXs*

���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')
r!r"�EXEC_PREFIXrrr#rr	rr)r)�standard_libr*r-Z	libpythonrrr
�get_python_lib�s0
�
��r0c	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)r7r:ZccZcxxZcflagsZccsharedZldsharedZshlib_suffixZarZar_flagsZnewccZcppr8Zcc_cmdrrr
r;�sn

��


��






�	r;cCsDtr,tjdkr"tj�tptd�}q6tp(t}n
tdd�}tj�|d�S)Nrr r�r)z
pyconfig-64.h)r$rr#rr	rrr+)Zinc_dirrrr
�get_config_h_filename�s


rAcCs\trtj�tptd�Stddd�}d�t�t	�}t
tjd�rL|dtjj
7}tj�||d�S)NZMakefilerr�r)r/zconfig-{}{}�
_multiarchz-%s)r$rrr	rrr0�formatrr'�hasattrr�implementationrC)Zlib_dirZconfig_filerrr
�get_makefile_filenamesrGcCs�|dkri}t�d�}t�d�}|��}|s.q�|�|�}|rx|�dd�\}}zt|�}Wntk
rlYnX|||<q |�|�}|r d||�d�<q |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&




rUz"([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}|��}|dkrDq�t�|�}|r2|�dd�\}}	|	��}	|	�dd�}
d	|
kr�|	||<q2zt|	�}	Wn$t	k
r�|	�dd	�||<Yq2X|	||<q2d
}|�rtt
|�D�]�}||}
t�|
�p�t
�|
�}|�rj|�d�}d}||k�r$t||�}n�||k�r4d}nx|tjk�rLtj|}n`||k�r�|�d
��rz|dd�|k�rzd}n$d
||k�r�d}nt|d
|�}nd||<}|�rp|
|��d�}|
d|���||}
d	|k�r�|
||<nzzt|
�}
Wn"t	k
�r|
��||<Yn
X|
||<||=|�d
��rp|dd�|k�rp|dd�}||k�rp|
||<q�||=q�q�|��|��D]"\}}	t|	t��r�|	��||<�q�|�|�|S)Nr)�TextFiler�surrogateescape)Zstrip_commentsZskip_blanksZ
join_lines�errorsrz$$r�$)r3r4r6TFZPY_�)Zdistutils.text_filerVrJ�_variable_rxrKrL�strip�replacerMrN�list�_findvar1_rx�search�_findvar2_rx�strrr>r�end�start�close�items�
isinstance�update)rrPrVrOZdoneZnotdonerQrRrSrTZtmpvZrenamed_variablesr#�value�found�itemZafter�krrr
�parse_makefile/s�








�



rmcCsVt�|�pt�|�}|rR|��\}}|d|�|�|�d��||d�}qqRq|S)Nrr)r_r`ra�span�getrL)�s�varsrRZbegrcrrr
�expand_makefile_vars�s*rrc
CsVtj�ddjtjtjttjdd�d��}t	|t
�t�dgd�}|j}ia
t
�|�dS)NZ_PYTHON_SYSCONFIGDATA_NAMEz+_sysconfigdata_{abi}_{platform}_{multiarch}rCr)Zabir9Z	multiarch�build_time_varsr)rr>rorDr�abiflagsr9�getattrrF�
__import__�globals�localsrsr<rh)r#Z_temprsrrr
�_init_posix�s��rycCs~i}tddd�|d<tddd�|d<tdd�|d<t��d|d<d	|d
<t��dd�|d
<tj�tj�	t
j��|d<|adS)NrrrBZLIBDESTZ
BINLIBDESTr@Z	INCLUDEPY�
EXT_SUFFIXz.exeZEXE�.rZVERSIONZBINDIR)
r0r+�_imp�extension_suffixesrr]rr�dirname�abspathr�
executabler<)rPr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�|�rTg}|D]}|�t�|���q8|StSdS)
NZ_init_r*�exec_prefixrz�SOrrr1r)r<rwrorr#rr.rr$rr~rGr	rr&�isabs�getcwdrr9r:Zcustomize_config_vars�append)�args�funcr�r�baser:Zvalsr#rrr
r=�sB



�
r=cCs*|dkrddl}|�dtd�t��|�S)Nr�rz SO is deprecated, use EXT_SUFFIXr)�warnings�warn�DeprecationWarningr=ro)r#r�rrr
r%!sr%)rN)rrN)N)N)5r|rrHrrXr�utilrrrr&r*rr�r.�base_prefixr"�base_exec_prefixr!r>rrr�r~r�rrurr#rrr$r'rt�AttributeErrorrr+r0r;rArGrUrIr[r_rarmrrr<ryr�r=r%rrrr
�<module>sZ



(
+I





jJ

?>