��Qc@sddlmZddlmZd�Zee�Zee�ZyddlmZWnek
rne Z
nXeZ
defd��YZdefd��YZdd l
Z
dd lZdd lZeej_eej_d
e
jkr�e
jd
_nd S(i�(t Extension(tDistributioncCsNx"|jjd�r$|j\}qW|jjd�sJtd|��n|S(s�Protect against re-patching the distutils if reloaded
Also ensures that no other distutils extension monkeypatched the distutils
first.
t
setuptoolst distutilss(distutils has already been patched by %r(t
__module__t
startswitht __bases__tAssertionError(tcls((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyt_get_unpatcheds(t build_extRcBs eZdZesd�ZnRS(s7Extension that uses '.c' files in place of '.pyx' filescOsntj|||�g}xE|jD]:}|jd�rP|j|d d�q#|j|�q#W||_dS(Ns.pyxi�tc(t
_Extensiont__init__tsourcestendswithtappend(tselftargstkwRts((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyR
"s(t__name__Rt__doc__t
have_pyrexR
(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyRstLibrarycBseZdZRS(s=Just like a regular Extension, but built as a library instead(RRR(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyR,sNsdistutils.command.build_ext(tdistutils.coreRRRt
_DistributionR tPyrex.Distutils.build_extR
tImportErrortFalseRtTrueRtsysRtdistutils.extensiontcoret extensiontmodules(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyt<module>s
$
|