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 BreamoreBoy, barry, brett.cannon, christopher.hogan, dstufft, eric.araujo, jaraco, mgiuca, ncoghlan, r.david.murray, steve.dower, tarek, zach.ware
Date 2015-08-20.15:50:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440085801.13.0.568640042396.issue8987@psf.upfronthosting.co.za>
In-reply-to
Content
Maybe a better starting point is to monkey-patch via setuptools? I know it's nasty, but it'll give us a chance to actually iterate on this before committing to a distutils change. (IMO the biggest problem with distutils is that it gets basically no testing before a final release, other than people who have already worked around its issues.) CCompiler.spawn is fairly easy to patch too.

Adding Jason in case he's still so upset from last time I did this (finding VC compiler for 2.7) he wants to shut the suggestion down immediately :)

As an aside, escaping quotes by doubling them (as in the OP) works fine for MSVC, but is not necessarily standard across all applications. Escaping with a backslash is probably more common, but (e.g.) batch files don't need them escaped if they aren't followed by a space and can't escape them at all if they are followed by a space (then again, we all agree that cmd.exe is fundamentally broken here, so using https://msdn.microsoft.com/en-us/library/windows/desktop/bb776391.aspx (CommandLineToArgvW API) as the benchmark is reasonable).
History
Date User Action Args
2015-08-20 15:50:01steve.dowersetrecipients: + steve.dower, barry, brett.cannon, jaraco, ncoghlan, tarek, eric.araujo, mgiuca, r.david.murray, BreamoreBoy, zach.ware, dstufft, christopher.hogan
2015-08-20 15:50:01steve.dowersetmessageid: <1440085801.13.0.568640042396.issue8987@psf.upfronthosting.co.za>
2015-08-20 15:50:01steve.dowerlinkissue8987 messages
2015-08-20 15:50:00steve.dowercreate