Rev 128: Depend on cython or pyrex being installed. in http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
John Arbash Meinel
john at arbash-meinel.com
Wed Dec 30 22:26:59 GMT 2009
At http://bazaar.launchpad.net/~meliae-dev/meliae/trunk
------------------------------------------------------------
revno: 128
revision-id: john at arbash-meinel.com-20091230222656-478xlgf920i48c07
parent: john at arbash-meinel.com-20091230221241-49urd9xvupm0z6p3
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: trunk
timestamp: Wed 2009-12-30 16:26:56 -0600
message:
Depend on cython or pyrex being installed.
Use Cython first, as it seems to be slightly more optimized.
-------------- next part --------------
=== modified file 'setup.py'
--- a/setup.py 2009-12-29 23:01:29 +0000
+++ b/setup.py 2009-12-30 22:26:56 +0000
@@ -62,10 +62,13 @@
from distutils.core import setup, Extension
try:
- from Pyrex.Distutils import build_ext
+ from Cython.Distutils import build_ext
except ImportError:
- print "We depend on having Pyrex installed."
- return
+ try:
+ from Pyrex.Distutils import build_ext
+ except ImportError:
+ print "We depend on having Cython or Pyrex installed."
+ return
kwargs["cmdclass"] = {"build_ext": build_ext}
ext.append(Extension("meliae._scanner",
More information about the bazaar-commits
mailing list