Make the search for the lib32 and lib64 directories automatic for all

platforms.
This commit is contained in:
Anthony Tuininga 2007-09-13 04:42:14 +00:00
parent 0f5f55d2e6
commit 510b66a21a
1 changed files with 6 additions and 2 deletions

View File

@ -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"]