Your IP : 18.222.161.245
B
YI~d�L � @ s� d dl Z d dlZd dlZddddgZdZdZdZd%d d
�Zdd� Zd
d� Z da
dd� Zdd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd � Zd!d� Zd"d� Zd#d� Zd$d� ZdS )&� N�compiler_fixup�customize_config_vars�customize_compiler�get_platform_osx)
�CFLAGSZLDFLAGSZCPPFLAGSZ
BASECFLAGS� BLDSHARED�LDSHARED�CC�CXXZ PY_CFLAGSZ
PY_LDFLAGSZPY_CPPFLAGSZPY_CORE_CFLAGSZPY_CORE_LDFLAGS)r r r r
Z_OSX_SUPPORT_INITIAL_c C s� |d krt jd }|�t j�}t j�| �\}}tjdkrH|dkrH| d } t j�| �s�x*|D ]"}t j� || �}t j�|�rZ|S qZW d S | S d S )N�PATH�win32z.exe)
�os�environ�split�pathsep�path�splitext�sys�platform�isfile�join)�
executabler �paths�baseZext�p�f� r �1/opt/alt/python37/lib64/python3.7/_osx_support.py�_find_executable s
r c C s� dd l }ydd l}|�� }W n( tk
rD tdt�� f d�}Y nX |�|��0}d| |jf }t� |�s||�
� �d��� S d S Q R X d S )Nr z/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8)
�
contextlib�tempfileZNamedTemporaryFile�ImportError�openr
�getpid�closing�name�system�read�decode�strip)Z
commandstringr r �fp�cmdr r r �_read_output7 s r, c C s t | �ptd| f �pdS )Nz/usr/bin/xcrun -find %s� )r r, )Ztoolnamer r r �_find_build_toolJ s r. c C sx t d krtda ytd�} W n tk
r, Y nHX zt�d| �� �}W d | �� X |d k rtd�|�d�� d�d d� �a t S )Nr- z0/System/Library/CoreServices/SystemVersion.plistz=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>�.� � )
�_SYSTEM_VERSIONr"