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,7 +149,8 @@ class build_ext(_build_ext.build_ext): ...@@ -149,7 +149,8 @@ class build_ext(_build_ext.build_ext):
# 2. Add in any (unique) entries from the extension # 2. Add in any (unique) entries from the extension
# pyrex_directives (if Cython.Distutils.extension is used). # pyrex_directives (if Cython.Distutils.extension is used).
directives = self.pyrex_directives 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 # Set the target_ext to '.c'. Cython will change this to '.cpp' if
# needed. # needed.
......
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