projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
083cceb
)
Easy enough to wrap in a hasattr. On my system only py31 complains, but on
author
Chuck Blake
<cb@pdos.csail.mit.edu>
Fri, 23 Jul 2010 02:11:45 +0000
(22:11 -0400)
committer
Chuck Blake
<cb@pdos.csail.mit.edu>
Fri, 23 Jul 2010 02:11:45 +0000
(22:11 -0400)
the Hudson autobuild, most versions complain about a missing attribute.
Cython/Distutils/build_ext.py
patch
|
blob
|
history
diff --git
a/Cython/Distutils/build_ext.py
b/Cython/Distutils/build_ext.py
index 0f8acf5a9a4c40488466dcff1821f5cb1b3e163b..652c5a7f99949e8bbaff7d7186aabd665f39f031 100644
(file)
--- a/
Cython/Distutils/build_ext.py
+++ b/
Cython/Distutils/build_ext.py
@@
-149,7
+149,8
@@
class build_ext(_build_ext.build_ext):
# 2. Add in any (unique) entries from the extension
# pyrex_directives (if Cython.Distutils.extension is used).
directives = self.pyrex_directives
- directives.update(extension.pyrex_directives)
+ if hasattr(extension, "pyrex_directives"):
+ directives.update(extension.pyrex_directives)
# Set the target_ext to '.c'. Cython will change this to '.cpp' if
# needed.