From: Jesus Cea Date: Wed, 18 Jan 2012 04:04:49 +0000 (+0100) Subject: And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils... X-Git-Tag: v3.2.3rc1~162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=031605ad999fa33e6da3eae3791c368826bd8311;p=thirdparty%2FPython%2Fcpython.git And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 416deec71dc6..bce840274dce 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -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) diff --git a/Lib/sysconfig.py b/Lib/sysconfig.py index 294fb0795b30..b2183d8e67fb 100644 --- a/Lib/sysconfig.py +++ b/Lib/sysconfig.py @@ -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)