mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Deal with sys.platform = "linux"
Changed in Python 3.3.
This commit is contained in:
parent
469b6f8aff
commit
6d9a25e63a
5
setup.py
5
setup.py
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user