Title: Fix instructions at WindowsCompilers for MSVC/SDKs
Type: behavior Stage: resolved
Components: Build, Documentation, Windows Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: docs@python Nosy List: Ivan.Pozdeev, berker.peksag, docs@python, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2016-04-15 11:21 by Ivan.Pozdeev, last changed 2016-04-15 11:54 by Ivan.Pozdeev. This issue is now closed.

File name Uploaded Description Edit
0001-fix-winsdk.patch Ivan.Pozdeev, 2016-04-15 11:21 fix instructions for SDKs
0002-VS-Express.patch Ivan.Pozdeev, 2016-04-15 11:22 fix instructions for VS 2008/2010
Messages (4)
msg263474 - (view) Author: Ivan Pozdeev (Ivan.Pozdeev) * Date: 2016-04-15 11:21
Current instructions at for a number of items are insufficient to make things work out of the box.
This has lead to widespread confusion and a lot of vastly different and invariably hacky/unreliable/unmaintainable "alternative" guides on the Net (see e.g. the sheer volume of crappy advice at and

The first patch fixes that for SDKs 6.1,7.0,7.1 (details are in the patch's Subject).
The second one mentions VS Express' limitation that leads to an obscure error in distutils which resulted in .

Unlike other (all?) instructions circling around the Net, these are NOT hacks and are intended to be official recommendations.

I tested them to work with 2.7 and 3.2 on an x32 with no prior development tools installed. I also checked other instructions applicable to these versions to be okay.

I didn't touch the ''mingw'' section because, according to , it can't really be officially supported as it is now.
msg263475 - (view) Author: Ivan Pozdeev (Ivan.Pozdeev) * Date: 2016-04-15 11:29
I preferred DISTUTILS_USE_SDK to MSSDK because the latter is a hack intended for private, advanced use rather than as the standard way: it makes distutils stop guessing and rely on the user to set the environment correctly.
msg263476 - (view) Author: Berker Peksag (berker.peksag) * (Python committer) Date: 2016-04-15 11:33
Thanks for the detailed report and for the patch, Ivan. But since is a wiki document, you can edit it yourself. Please send an email to with your account name. See for details.
msg263482 - (view) Author: Ivan Pozdeev (Ivan.Pozdeev) * Date: 2016-04-15 11:53
I know it's a wiki. But this particular page is marked ImmutablePage and I couldn't edit it even after I registered, so I thought It's protected. I'll try the e-mail now.
Date User Action Args
2016-04-15 11:54:20Ivan.Pozdeevsetstatus: open -> closed
resolution: third party
2016-04-15 11:53:42Ivan.Pozdeevsetstatus: closed -> open
resolution: third party -> (no value)
messages: + msg263482
2016-04-15 11:33:44berker.peksagsetstatus: open -> closed

nosy: + berker.peksag
messages: + msg263476

resolution: third party
stage: resolved
2016-04-15 11:29:45Ivan.Pozdeevsetmessages: + msg263475
2016-04-15 11:22:27Ivan.Pozdeevsetfiles: + 0002-VS-Express.patch
2016-04-15 11:21:51Ivan.Pozdeevcreate