Commits

Jason Baker committed cb5a8d0

Adding cython support

  • Participants
  • Parent commits 926e161

Comments (0)

Files changed (1)

setuptools/extension.py

 from setuptools.dist import _get_unpatched
 _Extension = _get_unpatched(_Extension)
 
+have_pyrex = False
+
 try:
     from Pyrex.Distutils.build_ext import build_ext
 except ImportError:
-    have_pyrex = False
+    pass
+else:
+    have_pyrex = True
+
+try:
+    from Cython.Distutils.build_ext import build_ext
+except ImportError:
+    pass
 else:
     have_pyrex = True