[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine
Antoine Pitrou
report at bugs.python.org
Thu Sep 12 17:18:52 CEST 2013
Antoine Pitrou added the comment:
Hello,
> To discover a 32-bit interpreter running on a 64-bit system, we could
> use
> platform.architecture(), which returns
> >>> platform.architecture()
> ('32bit', 'ELF')
Just use (sys.maxsize < 2**32).
> What then, though? How do you turn '32bit' to 'linux-i386'?
I don't know. How does distutils normally do? :-)
----------
title: distutils.utils.get_platform() for 32-bit Python on a 64-bit machine -> distutils.utils.get_platform() for 32-bit Python on a 64-bit machine
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18987>
_______________________________________
More information about the Python-bugs-list
mailing list