Commit 6b0be476 authored by Lisandro Dalcin's avatar Lisandro Dalcin

fix for distutils changes in upcoming Py2.7 and Py3.2

parent f5b3c3a0
...@@ -59,7 +59,11 @@ class build_ext(_build_ext): ...@@ -59,7 +59,11 @@ class build_ext(_build_ext):
def build_extension(self, ext): def build_extension(self, ext):
if ext.language == 'c++': if ext.language == 'c++':
try: try:
self.compiler.compiler_so.remove('-Wstrict-prototypes') try: # Py2.7+ & Py3.2+
compiler_obj = self.compiler_obj
except AttributeError:
compiler_obj = self.compiler
compiler_obj.compiler_so.remove('-Wstrict-prototypes')
except Exception: except Exception:
pass pass
_build_ext.build_extension(self, ext) _build_ext.build_extension(self, ext)
......
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