Commits

Jason R. Coombs  committed 6eb9a75

Applying patch provided by Didrik Pinte on #195 for Cython build_ext support

  • Participants
  • Parent commits b4c3187
  • Branches 0.6-maintenance

Comments (0)

Files changed (1)

File setuptools/extension.py

 _Extension = _get_unpatched(_Extension)
 
 try:
-    from Pyrex.Distutils.build_ext import build_ext
+    # testing Cython first as it is supposed to replace pyrex
+    from Cython.Distutils.build_ext import build_ext
 except ImportError:
+    try:
+        from Pyrex.Distutils.build_ext import build_ext
+    except:
+        have_pyrex = False
+    else:
+        has_pyrex = True
+
     have_pyrex = False
 else:
     have_pyrex = True