Commit 8d4fdaad authored by Chuck Blake's avatar Chuck Blake

Easy enough to wrap in a hasattr. On my system only py31 complains, but on

the Hudson autobuild, most versions complain about a missing attribute.
parent 083cceb6
......@@ -149,6 +149,7 @@ 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
if hasattr(extension, "pyrex_directives"):
directives.update(extension.pyrex_directives)
# Set the target_ext to '.c'. Cython will change this to '.cpp' if
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment