Calculate whether or not a 64-bit platform is in use properly.

This commit is contained in:
Anthony Tuininga 2008-11-29 18:54:41 +00:00
parent 231377127e
commit d802a08e9b
1 changed files with 1 additions and 1 deletions

View File

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