Sam Ferencik added the comment: Unfortunately, I don't have a patch.
Some thoughts: To discover a 32-bit interpreter running on a 64-bit system, we could use platform.architecture(), which returns >>> platform.architecture() ('32bit', 'ELF') What then, though? How do you turn '32bit' to 'linux-i386'? The naive solution would be to hard-code this as an exception: - if 32-on-64, use 'i386' - otherwise, use os.uname()[4], i.e. 'i386' or 'x86_64' I suspect that's ultra naive, though. The get_platform() code deals with a number of Unix-like systems (Solaris, AIX, ...). Even if we accepted this solution only for Linux, leaving the other OSs broken, is 'i386' always the right answer, or would 'i586' or similar be appropriate in some cases? We could also take inspiration from Mac OS (_osx_support.get_platform_osx()), which basically ignores os.uname()[4] completely and constructs the return value from a set of hard-coded values ('i386' being one of them). What do you think? ---------- _______________________________________ 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