Deal with sys.platform = "linux"

Changed in Python 3.3.
This commit is contained in:
Daniele Varrazzo 2012-09-21 02:28:52 +01:00
parent 469b6f8aff
commit 6d9a25e63a

View File

@ -347,14 +347,15 @@ class psycopg_build_ext(build_ext):
self.libraries.append('ssl')
self.libraries.append('crypto')
def finalize_linux2(self):
def finalize_linux(self):
"""Finalize build system configuration on GNU/Linux platform."""
# tell piro that GCC is fine and dandy, but not so MS compilers
for extension in self.extensions:
extension.extra_compile_args.append(
'-Wdeclaration-after-statement')
finalize_linux3 = finalize_linux2
finalize_linux2 = finalize_linux
finalize_linux3 = finalize_linux
def finalize_options(self):
"""Complete the build system configuation."""