| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/site-packages/setuptools/_distutils/__pycache__/ |
Upload File : |
B
�a�P � @ s0 d Z ddlZddlZddlZddlZddlZddlmZ ddl m
Z
ddlmZ ddl
mZ ddlmZ dd lmZ d
d� Zdd
� Zejdkr�dadZdd� Zdd� Zdd� Zdd� Zdd� Zdd� Zdadd� Zdd� Zd d!� Z d1d#d$�Z!d a" a#a$d%d&� Z%d'd(� Z&d2d)d*�Z'd+d,� Z(d3d-d.�Z)d/d0� Z*dS )4zudistutils.util
Miscellaneous utility functions -- anything that doesn't fit into
one of the other *util.py modules.
� N)�DistutilsPlatformError)�newer)�spawn)�log)�DistutilsByteCompileError� )�"_optim_args_from_interpreter_flagsc C s� t jdkrFdtj�� krdS dtj�� kr.dS dtj�� kr@dS tjS dt jkrZt jd S t jd ksntt d
�sttjS t �� \} }}}}| �� � dd�} |� d
d�}|� dd�}| dd� dkr�d| |f S | dd� dk�r,|d dk�r�d} dt
|d �d |dd� f }ddd�}|d|tj 7 }n�| dd� dk�rVd d!lm
} || ||�S | dd"� d#k�r�d#} t�d$tj�}|�|�}|�r�|�� }n>| dd"� d%k�r�ddl} ddl}
| �|
j�� | ||�\} }}d&| ||f S )'a� Return a string that identifies the current platform. This is used mainly to
distinguish platform-specific build directories and platform-specific built
distributions. Typically includes the OS name and version and the
architecture (as supplied by 'os.uname()'), although the exact information
included depends on the OS; eg. on Linux, the kernel version isn't
particularly important.
Examples of returned values:
linux-i586
linux-alpha (?)
solaris-2.6-sun4u
Windows will return one of:
win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
win32 (all others - specifically, sys.platform is returned)
For other non-POSIX platforms, currently just returns 'sys.platform'.
�ntZamd64z win-amd64z(arm)z win-arm32z(arm64)z win-arm64Z_PYTHON_HOST_PLATFORM�posix�uname�/� � �_�-N� Zlinuxz%s-%sZsunosr �5Zsolarisz%d.%s� � Z32bitZ64bit)i���l ���� z.%sZaixr )�aix_platform� �cygwinz[\d.]+�darwinz%s-%s-%s)�os�name�sys�version�lower�platform�environ�hasattrr �replace�int�maxsizeZ
py38compatr �re�compile�ASCII�match�group�_osx_supportZdistutils.sysconfigZget_platform_osx� sysconfigZget_config_vars)ZosnameZhost�releaser �machineZbitnessr Zrel_re�mr) � distutils� r/ �>/usr/lib/python3.7/site-packages/setuptools/_distutils/util.py�get_host_platform sN
r1 c C s: t jdkr0ddddd�} | �t j�d��p.t� S t� S d S )Nr �win32z win-amd64z win-arm32z win-arm64)Zx86Zx64ZarmZarm64ZVSCMD_ARG_TGT_ARCH)r r �getr r1 )ZTARGET_TO_PLATr/ r/ r0 �get_platformd s
r4 r ZMACOSX_DEPLOYMENT_TARGETc C s da dS )zFor testing only. Do not call.N)�_syscfg_macosx_verr/ r/ r/ r0 �_clear_cached_macosx_veru s r6 c C s. t dkr*ddlm} | �t�p d}|r*|a t S )z�Get the version of macOS latched in the Python interpreter configuration.
Returns the version as a string or None if can't obtain one. Cached.Nr )r* r
)r5 r. r* Zget_config_var�MACOSX_VERSION_VAR)r* Zverr/ r/ r0 �!get_macosx_target_ver_from_syscfgz s r8 c C s^ t � } tj�t�}|rZ| rVt| �ddgkrVt|�ddgk rVdt d|| f }t|��|S | S )a Return the version of macOS for which we are building.
The target version defaults to the version in sysconfig latched at time
the Python interpreter was built, unless overridden by an environment
variable. If neither source has a value, then None is returned�
r �$zE mismatch: now "%s" but "%s" during configure; must use 10.3 or later)r8 r r r3 r7 �
split_versionr )Z
syscfg_verZenv_verZmy_msgr/ r/ r0 �get_macosx_target_ver� s r<