]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils...
authorJesus Cea <jcea@jcea.es>
Wed, 18 Jan 2012 04:04:49 +0000 (05:04 +0100)
committerJesus Cea <jcea@jcea.es>
Wed, 18 Jan 2012 04:04:49 +0000 (05:04 +0100)
Lib/distutils/util.py
Lib/sysconfig.py

index 416deec71dc60750333a6c62c94aefe5db0e2faa..bce840274dce0f8f1d24dcfb03990ff1932bf064 100644 (file)
@@ -81,7 +81,7 @@ def get_platform ():
             # bootstrap problem. We use a dict to get an error
             # if some suspicious happens.
             bitness = {2147483647:"32bit", 9223372036854775807:"64bit"}
-            machine += ".%s" % bitness[sys.maxint]
+            machine += ".%s" % bitness[sys.maxsize]
         # fall through to standard osname-release-machine representation
     elif osname[:4] == "irix":              # could be "irix64"!
         return "%s-%s" % (osname, release)
index 294fb0795b30a1db994b1f8f94137dedc7c1c5f8..b2183d8e67fbd95444edbdb98dc507b5efc31510 100644 (file)
@@ -643,7 +643,7 @@ def get_platform():
             # bootstrap problem. We use a dict to get an error
             # if some suspicious happens.
             bitness = {2147483647:"32bit", 9223372036854775807:"64bit"}
-            machine += ".%s" % bitness[sys.maxint]
+            machine += ".%s" % bitness[sys.maxsize]
         # fall through to standard osname-release-machine representation
     elif osname[:4] == "irix":              # could be "irix64"!
         return "%s-%s" % (osname, release)