ó znŻSc@sŃddlZddlZddlZddlZddlZddlmZeejj ƒZ d„Z de fd„ƒYZ de fd„ƒYZ e ej_ e ej _ dejkrÍe ejd_ ndS( i˙˙˙˙N(t_get_unpatchedcCsMd}x@|D]8}yt|ddgƒjtSWq tk rDq Xq WtS(s9 Return True if Cython or Pyrex can be imported. sCython.Distutils.build_extsPyrex.Distutils.build_exttfromlistt build_ext(sCython.Distutils.build_extsPyrex.Distutils.build_ext(t __import__RtTruet ExceptiontFalse(t pyrex_implst pyrex_impl((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyt have_pyrex s  t ExtensioncBs eZdZd„Zd„ZRS(s7Extension that uses '.c' files in place of '.pyx' filescOs!tj|||Ž|jƒdS(N(t _Extensiont__init__t_convert_pyx_sources_to_lang(tselftargstkw((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyR scCsqtƒr dS|jpd}|jƒdkr4dnd}tjtjd|ƒ}tt||j ƒƒ|_ dS(sÜ Replace sources with .pyx extensions to sources with the target language extension. This mechanism allows language authors to supply pre-converted sources but to prefer the .pyx sources. Ntsc++s.cpps.cs.pyx$( R tlanguagetlowert functoolstpartialtretsubtlisttmaptsources(Rtlangt target_extR((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyR !s  (t__name__t __module__t__doc__R R (((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyR s tLibrarycBseZdZRS(s=Just like a regular Extension, but built as a library instead(RRR(((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyR /ssdistutils.command.build_ext(tsysRRtdistutils.coret distutilstdistutils.extensiontsetuptools.distRtcoreR R R R t extensiontmodules(((s>/usr/local/lib/python2.7/site-packages/setuptools/extension.pyts