View file File name : _osx_support.cpython-36.opt-2.pyc Content :3 \�J � @ s� d dl Z d dlZd dlZddddgZd0Zd1ZdZd2dd�Zdd� Zdd� Z da dd� Zdd� Zdd� Z d d!� Zd"d#� Zd$d%� Zd&d'� Zd(d)� Zd*d+� Zd,d� Zd-d� Zd.d� Zd/d� ZdS )3� 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� |d krt jd }|jt j�}t jj| �\}}tjdkrH|dkrH| d } t jj| �s�x*|D ]"}t jj || �}t jj|�rZ|S qZW d S | S d S )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� dd l }ydd l}|j� }W n( tk rD tdtj� f d�}Y nX |j|��0}d| |jf }tj |�s||j � jd�j� 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&