[Python-checkins] r84488 - python/branches/py3k/setup.py

antoine.pitrou python-checkins at python.org
Sat Sep 4 18:28:04 CEST 2010


Author: antoine.pitrou
Date: Sat Sep 4 18:28:00 2010
New Revision: 84488
Log:
Workaround PEP 3149 build problems.
Modified:
 python/branches/py3k/setup.py
Modified: python/branches/py3k/setup.py
==============================================================================
--- python/branches/py3k/setup.py	(original)
+++ python/branches/py3k/setup.py	Sat Sep 4 18:28:00 2010
@@ -152,7 +152,13 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /