Hacked By AnonymousFox
3
\�J �
@ s� d Z ddlZddlZddlZddddgZd1Zd2ZdZd3dd�Zdd� Z dd� Z
dadd� Zdd� Z
dd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� Zd+d,� Zd-d� Zd.d� Zd/d� Zd0d� ZdS )4zShared OS X support functions.� N�compiler_fixup�customize_config_vars�customize_compiler�get_platform_osx�CFLAGS�LDFLAGS�CPPFLAGS�
BASECFLAGS� BLDSHARED�LDSHARED�CC�CXX� PY_CFLAGS�
PY_LDFLAGS�PY_CPPFLAGS�PY_CORE_CFLAGS�PY_CORE_LDFLAGSZ_OSX_SUPPORT_INITIAL_c C s� |dkrt jd }|jt j�}t jj| �\}}tjdkrH|dkrH| d } t jj| �s�x*|D ]"}t jj || �}t jj|�rZ|S qZW dS | 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�PATHZwin32z.exe)
�os�environ�split�pathsep�path�splitext�sys�platform�isfile�join)�
executabler �paths�baseZext�p�f� r# �$/usr/lib64/python3.6/_osx_support.py�_find_executable s
r% c C s� ddl }yddl}|j� }W n( tk
rD tdtj� f d�}Y nX |j|��0}d| |jf }tj |�s||j
� jd�j� S dS 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�tempfileZNamedTemporaryFile�ImportError�openr �getpid�closing�name�system�read�decode�strip)Z
commandstringr&