From: Lisandro Dalcin Date: Wed, 14 Oct 2009 21:11:17 +0000 (-0300) Subject: fix for distutils changes in upcoming Py2.7 and Py3.2 X-Git-Tag: 0.13.beta0~2^2~121^2~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6b0be476407ecc83814028f1fcbed70e799055d6;p=cython.git fix for distutils changes in upcoming Py2.7 and Py3.2 --- diff --git a/runtests.py b/runtests.py index 5d33f9a1..efb4d421 100644 --- a/runtests.py +++ b/runtests.py @@ -59,7 +59,11 @@ class build_ext(_build_ext): def build_extension(self, ext): if ext.language == 'c++': 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: pass _build_ext.build_extension(self, ext)