[Python-checkins] cpython (3.2): And yet another emergency fix for #13803 bootstrap issue: Under Solaris,
jesus.cea
python-checkins at python.org
Wed Jan 18 05:05:46 CET 2012
http://hg.python.org/cpython/rev/147ad02875fa
changeset: 74491:147ad02875fa
branch: 3.2
parent: 74489:37efae3bf912
user: Jesus Cea <jcea at jcea.es>
date: Wed Jan 18 05:04:49 2012 +0100
summary:
And yet another emergency fix for #13803 bootstrap issue: Under Solaris, distutils doesn't include bitness in the directory name
files:
Lib/distutils/util.py | 2 +-
Lib/sysconfig.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py
--- a/Lib/distutils/util.py
+++ b/Lib/distutils/util.py
@@ -81,7 +81,7 @@
# 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
--- a/Lib/sysconfig.py
+++ b/Lib/sysconfig.py
@@ -643,7 +643,7 @@
# 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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list