summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-09-04 16:28:00 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-09-04 16:28:00 (GMT)
commit327fd40dde2a22fd1162dfda64bc6c8c96552b71 (patch)
tree201362b1e56f38b56c47574ebf93cf20d290b58f
parenta5e31091540a0c63ea1a4c9cafad5801480c33b6 (diff)
downloadcpython-327fd40dde2a22fd1162dfda64bc6c8c96552b71.zip
cpython-327fd40dde2a22fd1162dfda64bc6c8c96552b71.tar.gz
cpython-327fd40dde2a22fd1162dfda64bc6c8c96552b71.tar.bz2
Workaround PEP 3149 build problems.
-rw-r--r--setup.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 8e51960..542b928 100644
--- a/setup.py
+++ b/setup.py
@@ -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