Calculate whether or not a 64-bit platform is in use properly.
This commit is contained in:
parent
231377127e
commit
d802a08e9b
2
setup.py
2
setup.py
|
@ -160,7 +160,7 @@ else:
|
|||
if not includeDirs:
|
||||
raise DistutilsSetupError("cannot locate Oracle include files")
|
||||
libPath = os.path.join(oracleHome, "lib")
|
||||
if struct.calcsize("i") == 4:
|
||||
if struct.calcsize("P") == 4:
|
||||
alternatePath = os.path.join(oracleHome, "lib32")
|
||||
else:
|
||||
alternatePath = os.path.join(oracleHome, "lib64")
|
||||
|
|
Loading…
Reference in New Issue