Rev 5849: Try using Cython to compile before we use Pyrex in http://bazaar.launchpad.net/~jameinel/bzr/2.4-cython-first

John Arbash Meinel john at arbash-meinel.com
Wed May 11 11:42:42 UTC 2011


At http://bazaar.launchpad.net/~jameinel/bzr/2.4-cython-first

------------------------------------------------------------
revno: 5849
revision-id: john at arbash-meinel.com-20110511114236-6d3u2273w4haw9ot
parent: pqm at pqm.ubuntu.com-20110511024831-tm38ubce8znnq351
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 2.4-cython-first
timestamp: Wed 2011-05-11 13:42:36 +0200
message:
  Try using Cython to compile before we use Pyrex
-------------- next part --------------
=== modified file 'setup.py'
--- a/setup.py	2010-12-26 13:19:11 +0000
+++ b/setup.py	2011-05-11 11:42:36 +0000
@@ -171,12 +171,12 @@
 ext_modules = []
 try:
     try:
+        from Cython.Distutils import build_ext
+        from Cython.Compiler.Version import version as pyrex_version
+    except ImportError:
+        print("No Cython, trying Pyrex...")
         from Pyrex.Distutils import build_ext
         from Pyrex.Compiler.Version import version as pyrex_version
-    except ImportError:
-        print("No Pyrex, trying Cython...")
-        from Cython.Distutils import build_ext
-        from Cython.Compiler.Version import version as pyrex_version
 except ImportError:
     have_pyrex = False
     # try to build the extension from the prior generated source.



More information about the bazaar-commits mailing list