
|
Server : Apache System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64 User : kikai ( 1014) PHP Version : 8.3.30 Disable Function : NONE Directory : /opt/python38/lib/python3.8/__pycache__/ |
Upload File : |
U
�i�_�L � @ s� d Z ddlZddlZddlZddddgZdZdZd Zd&d
d�Zdd
� Z dd� Z
dadd� Zdd� Z
dd� Zdd� Zdd� Zdd� Zdd� Zdd� Zd d!� Zd"d� Zd#d� Zd$d� Zd%d� ZdS )'zShared OS X support functions.� 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� |dkrt jd }|�t j�}t j�| �\}}tjdkrH|dkrH| d } t j�| �s�|D ]&}t j� || �}t j�|�rX| S qXdS | S dS )z�Tries to find 'executable' in the directories listed in 'path'.
A string listing directories separated by 'os.pathsep'; defaults to
os.environ['PATH']. Returns the complete filename or None if not found.
N�PATH�win32z.exe)
�os�environ�split�pathsep�path�splitext�sys�platform�isfile�join)�
executabler �paths�base�ext�p�f� r �+/opt/python38/lib/python3.8/_osx_support.py�_find_executable s
r c
C s� ddl }zddl}|�� }W n( tk
rD tdt�� f d�}Y nX |�|��<}d| |jf }t� |�s||�
� �d��� ndW 5 Q R � S Q R X dS )z0Output from successful command execution or Noner Nz/tmp/_osx_support.%szw+bz%s 2>/dev/null >'%s'zutf-8)
�
contextlib�tempfile�NamedTemporaryFile�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 )z0Find a build tool on current path or using xcrunz/usr/bin/xcrun -find %s� )r r. )Ztoolnamer r r �_find_build_toolJ s
��r0 c C sx t dkrtda ztd�} W n tk
r, Y nHX zt�d| �� �}W 5 | �� X |dk rtd�|�d�� d�dd� �a t S )z*Return the OS X system version as a stringNr/ z0/System/Library/CoreServices/SystemVersion.plistz=<key>ProductUserVisibleVersion</key>\s*<string>(.*?)</string>�.� � )
�_SYSTEM_VERSIONr$ �OSError�close�re�searchr) r �groupr )r �mr r r �_get_system_versionS s
�
r; c C s"