This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JGoutin
Recipients JGoutin, dstufft, eric.araujo, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-11-17.18:18:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447784281.94.0.124593028939.issue25646@psf.upfronthosting.co.za>
In-reply-to
Content
For SDK 7.1, with "DISTUTILS_USE_SDK=1" (And "MSSdk=1"), I still have the problem.

The error is on "include", "lib", "libpath", "path" environment variables which are not set by "vcvarsall.bat" (And are difficult to set manually). I looked on "msvc9compiler.py" file, I see that DISTUTILS_USE_SDK set the names for some compiler executables but not these variables.

A solution should be to call "SetEnv.cmd" in place of "vcvarsall.bat" if SDK is installed and if environment variables listed above are missing even after the call of "vcvarsall.bat" (Or if "vcvarsall.bat" is missing).
"SetEnv.cmd" properly set the environment and I successfully compiled files after launched it.

I can do this change and commit it. This will add fully automatic compatibility for SDK 6.1/7.0/7.1, so all possibles version for VC++2008 and 2010 (Is it also possible to add "vcbuildtools.bat" for VC++ Build Tools 2015, but you say it's already fixed for it.)
History
Date User Action Args
2015-11-17 18:18:01JGoutinsetrecipients: + JGoutin, paul.moore, tim.golden, eric.araujo, zach.ware, steve.dower, dstufft
2015-11-17 18:18:01JGoutinsetmessageid: <1447784281.94.0.124593028939.issue25646@psf.upfronthosting.co.za>
2015-11-17 18:18:01JGoutinlinkissue25646 messages
2015-11-17 18:18:01JGoutincreate