Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
327fd40d
Commit
327fd40d
authored
Sep 04, 2010
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround PEP 3149 build problems.
parent
a5e31091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
setup.py
setup.py
+7
-1
No files found.
setup.py
View file @
327fd40d
...
...
@@ -152,7 +152,13 @@ class PyBuildExt(build_ext):
def
build_extensions
(
self
):
# Detect which modules should be compiled
missing
=
self
.
detect_modules
()
old_so
=
self
.
compiler
.
shared_lib_extension
# Workaround PEP 3149 stuff
self
.
compiler
.
shared_lib_extension
=
os
.
environ
.
get
(
"SO"
,
".so"
)
try
:
missing
=
self
.
detect_modules
()
finally
:
self
.
compiler
.
shared_lib_extension
=
old_so
# Remove modules that are present on the disabled list
extensions
=
[
ext
for
ext
in
self
.
extensions
...
...
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