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 <rep...@bugs.python.org> <http://bugs.python.org/issue18987> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com