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 lemburg
Recipients BreamoreBoy, christian.heimes, lemburg, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-04-17.08:29:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <5530C469.20107@egenix.com>
In-reply-to <1429221980.64.0.935146373361.issue23970@psf.upfronthosting.co.za>
Content
On 17.04.2015 00:06, Steve Dower wrote:
> 
> So it looks like what I should do is use the include_dirs and library_dirs members from CCompiler so they can be set through other properties.

I see that you're basically reading the include and lib
dirs from the vc_env which essentially reads the vcvars
batch files, so that's no different than what we're
already doing.

It may be useful to add an official helper to the module to
run this extraction outside the compiler class, e.g.

def get_vc_var(var):
    return _get_vc_env(plat_spec).get(var)

> The extra arguments are passed into compile() as extra_preargs and extra_postargs, though I'm not entirely sure where they come from. I'd rather figure out how to use those than invent a new way of specifying them (FWIW, they've always been supported by the various msvccompiler implementations).

Hmm, to hook into those, we'd have to find every single use of those
methods and override them. Doesn't sound like a good way to do this,
if you want a few options extra with every single compile call.

I guess we'll then just continue to override the .initialize() call.
History
Date User Action Args
2015-04-17 08:29:38lemburgsetrecipients: + lemburg, paul.moore, christian.heimes, tim.golden, BreamoreBoy, zach.ware, steve.dower
2015-04-17 08:29:38lemburglinkissue23970 messages
2015-04-17 08:29:38lemburgcreate