Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
6b0be476
Commit
6b0be476
authored
Oct 14, 2009
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for distutils changes in upcoming Py2.7 and Py3.2
parent
f5b3c3a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
runtests.py
runtests.py
+5
-1
No files found.
runtests.py
View file @
6b0be476
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment