From 510b66a21a50e35d7940e939e1b88a952cdb6e0f Mon Sep 17 00:00:00 2001 From: Anthony Tuininga Date: Thu, 13 Sep 2007 04:42:14 +0000 Subject: [PATCH] Make the search for the lib32 and lib64 directories automatic for all platforms. --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index fad6947..b298a21 100644 --- a/setup.py +++ b/setup.py @@ -81,8 +81,12 @@ else: for i in range(len(includeDirs)): includeDirs[i] = os.path.join(oracleHome, includeDirs[i]) libPath = os.path.join(oracleHome, "lib") - if sys.platform == "sunos5" and sys.maxint > 2147483647: - libPath = os.path.join(oracleHome, "lib64") + if sys.maxint == 2 ** 31 - 1: + alternatePath = os.path.join(oracleHome, "lib32") + else: + alternatePath = os.path.join(oracleHome, "lib64") + if os.path.exists(alternatePath): + libPath = alternatePath libDirs = [libPath, oracleHome] libs = ["clntsh"]