[cx-oracle-users] cx_Logging setup.py on AIX
Brought to you by:
atuining
From: Tamás G. <gt...@gt...> - 2010-12-20 16:57:04
|
Hi Anthony, Sorry to post it here, but I just cannot find a mailing list/address for cx_Logging. On AIX 5.3, install fails - below is a setup.py workaround/fix. Tamás Gulácsi diff --git a/.external/cx_Logging-2.0/setup.py b/.external/cx_Logging-2.0/setup.py index 53c1160..1c58d2a 100644 --- a/.external/cx_Logging-2.0/setup.py +++ b/.external/cx_Logging-2.0/setup.py @@ -63,7 +63,10 @@ class build_ext(distutils.command.build_ext.build_ext): ext.libraries = ["ole32"] else: fileName = self.get_ext_filename(ext.name) - extraLinkArgs.append("-Wl,-soname,%s" % fileName) + if sys.platform.startswith("aix"): + extraLinkArgs.append("-Wl,-so%s" % fileName) + else: + extraLinkArgs.append("-Wl,-soname,%s" % fileName) distutils.command.build_ext.build_ext.build_extension(self, ext) def finalize_options(self): |