[Distutils] [Python-Dev] Consistent platform name for 64bit windows (was: distutils.util.get_platform() for Windows)

M.-A. Lemburg mal at egenix.com
Thu Mar 20 18:43:37 CET 2008

On 2008-03-20 13:55, M.-A. Lemburg wrote:
> On 2008-03-20 13:42, Thomas Heller wrote:
>> M.-A. Lemburg schrieb:
>>> About the platform.py changes: if someone could provide the return
>>> values of sys.getwindowsversion() for 64bit versions of Windows
>>> XP and Vista, I could add support for it (don't have a 64bit version
>>> of Windows available to check myself).
>> This is the output of a 32-bit Python running on "Windows XP Professional
>> x64 Edition, Version 2003, Service Pack 2":
>> C:\Python24>ver
>> Microsoft Windows [Version 5.2.3790]
>> C:\Python24>python
>> Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)] on win32
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import sys
>>>>> sys.getwindowsversion()
>> (5, 2, 3790, 2, 'Service Pack 2')
> Thank you !
> Anyone with a 64bit Vista ?
> Or even better: a page documenting what to expect from the system call
> behind the sys.getwindowsversion() API ?

FYI: I added winreg and sys.getwindowsversion() support in r61674.

platform.machine() and .processor() will now use the environment
available (should work on Windows XP and later).

According to http://support.microsoft.com/kb/888731 platform.machine()
will return "AMD64", so I guess the "x64" string is just a marketing
name for 64-bit platforms on Windows and the underlying system uses
"AMD64" as machine type name.

For x86 processors, you'll now get "x86" on Windows XP and later.

For Itanium processors, you should get "IA64" according to this
WOW64 page:


Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Mar 20 2008)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! ::::

    eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
     D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
            Registered at Amtsgericht Duesseldorf: HRB 46611

More information about the Distutils-SIG mailing list