Commit 327fd40d authored by Antoine Pitrou's avatar Antoine Pitrou

Workaround PEP 3149 build problems.

parent a5e31091
......@@ -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
......
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