Skip to content

Commit

Permalink
Workaround PEP 3149 build problems.
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Sep 4, 2010
1 parent a5e3109 commit 327fd40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ def __init__(self, dist):
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
Expand Down

0 comments on commit 327fd40

Please sign in to comment.