ó p®øQc@sddlmZddlmZd„ZeeƒZeeƒZyddlmZWnek rne Z nXe Z defd„ƒYZdefd„ƒYZ dd l Z dd lZdd lZeej_eej_d e jkr’ee jd _nd S( i’’’’(t Extension(t DistributioncCsNx"|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.coreRR Rt _DistributionR tPyrex.Distutils.build_extR t ImportErrortFalseRtTrueRtsysRtdistutils.extensiontcoret extensiontmodules(((s:/sys/lib/python2.7/distutils/tests/setuptools_extension.pyts      $