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 steve.dower
Recipients Daniel.Ozminkowski, Victor.Lin, eric.araujo, giampaolo.rodola, ipatrol, jafo, lemburg, loewis, piotr.dobrogost, sayap, schmir, shimizukawa, skrah, srid, steve.dower, tarek, thorsten.behrens, zzzeek
Date 2013-03-22.16:46:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1363970811.0.0.847568277159.issue7511@psf.upfronthosting.co.za>
In-reply-to
Content
This becomes more of an issue since VC++ 2008 Express is no longer available for download (unless you're an MSDN subscriber), though the compiler itself is still available as part of http://www.microsoft.com/en-us/download/details.aspx?id=3138 (for VC9)

I'll admit I haven't read all the discussion on other issues that relates to this, but I see no reason why the following maps couldn't be tried if vcvarsall.bat is not found. This would at least handle more cases and as far as I can tell is the only realistic option.

VCVARS_TO_WINSDK_BAT = {
    'x86' : 'bin\\vcvars32.bat',
    'amd64' : 'bin\\vcvars64.bat',
    'x86_amd64' : 'bin\\vcvarsx86_amd64.bat',
    'x86_ia64' : 'bin\\vcvarsx86_ia64.bat',
}

VCVARS_TO_VS_BAT = {
    'x86' : 'bin\\vcvars32.bat',
    'amd64' : 'bin\\amd64\\vcvars64.bat',
    'x86_amd64' : 'bin\\x86_amd64\\vcvarsx86_amd64.bat',
    'x86_ia64' : 'bin\\x86_ia64\\vcvarsx86_ia64.bat',
}

I have no idea why, but the SDK installs the batch files into different locations. VCVARS_TO_VS_BAT should be unnecessary, since vcvarsall.bat should always exist in this case, but I see no harm in having more fallback options.

All of these scripts (at least for VC9, VC10 and VC11) will ignore extra arguments.
History
Date User Action Args
2013-03-22 16:46:51steve.dowersetrecipients: + steve.dower, lemburg, loewis, jafo, giampaolo.rodola, schmir, tarek, sayap, eric.araujo, zzzeek, srid, skrah, ipatrol, shimizukawa, thorsten.behrens, piotr.dobrogost, Victor.Lin, Daniel.Ozminkowski
2013-03-22 16:46:50steve.dowersetmessageid: <1363970811.0.0.847568277159.issue7511@psf.upfronthosting.co.za>
2013-03-22 16:46:50steve.dowerlinkissue7511 messages
2013-03-22 16:46:50steve.dowercreate