Rev 5850: (jameinel) Default to using Cython for compiling code, in file:///home/pqm/archives/thelove/bzr/%2Btrunk/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Wed May 11 15:04:36 UTC 2011
At file:///home/pqm/archives/thelove/bzr/%2Btrunk/
------------------------------------------------------------
revno: 5850 [merge]
revision-id: pqm at pqm.ubuntu.com-20110511150423-tpm1ablukqalkvim
parent: pqm at pqm.ubuntu.com-20110511141035-u1udrv8dvm6wv8jl
parent: john at arbash-meinel.com-20110511114236-6d3u2273w4haw9ot
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Wed 2011-05-11 15:04:23 +0000
message:
(jameinel) Default to using Cython for compiling code,
rather than Pyrex. (John A Meinel)
modified:
setup.py setup.py-20050314065409-02f8a0a6e3f9bc70
=== 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