Your IP : 3.22.27.41


Current Path : /opt/alt/python34/lib/python3.4/site-packages/setuptools/__pycache__/
Upload File :
Current File : //opt/alt/python34/lib/python3.4/site-packages/setuptools/__pycache__/extension.cpython-34.pyc

�
M�Re|�@s�ddlZddlZddlZddlmZeejj�Zdd�Z	Gdd�de�ZGdd�de�Z
eej_eej_d	ejkr�eejd	_ndS)
�N)�_get_unpatchedcCsNd}xA|D]9}yt|ddg�jdSWq
tk
rEYq
Xq
WdS)z9
    Return True if Cython or Pyrex can be imported.
    �Cython.Distutils.build_ext�Pyrex.Distutils.build_ext�fromlist�	build_extTF)rr)�
__import__r�	Exception)Zpyrex_implsZ
pyrex_impl�r	�//tmp/pip-l4uy7dan-build/setuptools/extension.py�
have_pyrex	s

	rc@s.eZdZdZdd�Zdd�ZdS)�	Extensionz7Extension that uses '.c' files in place of '.pyx' filescOs-tj|||�t�s)|j�ndS)N)�
_Extension�__init__r�_convert_pyx_sources_to_c)�self�args�kwr	r	r
rs	zExtension.__init__cCs+dd�}tt||j��|_dS)zconvert .pyx extensions to .ccSs*|jd�r&|dd�d}n|S)Nz.pyx�z.c���)�endswith)�sourcer	r	r
�pyx_to_c"sz5Extension._convert_pyx_sources_to_c.<locals>.pyx_to_cN)�list�map�sources)rrr	r	r
r sz#Extension._convert_pyx_sources_to_cN)�__name__�
__module__�__qualname__�__doc__rrr	r	r	r
rsrc@seZdZdZdS)�Libraryz=Just like a regular Extension, but built as a library insteadN)rrrrr	r	r	r
r(srzdistutils.command.build_ext)
�sys�distutils.core�	distutils�distutils.extensionZsetuptools.distr�corerr
rr�	extension�modulesr	r	r	r
�<module>s

?>