[Scons-users] Implicit dependency `None' not found
William Blevins
wblevins001 at gmail.com
Sun Apr 3 14:32:09 EDT 2016
Tracking down the error of None in env lists tends to be ugly, so I am glad
you found the fault. I will bring up some thoughts in the developer list
and see if we can make this easier.
V/R,
William
On Sun, Apr 3, 2016 at 5:35 PM, Stefan Seefeld <stefan at seefeld.name> wrote:
> Hi William,
>
> thank you for continuing to look into this !
>
> On 03.04.2016 11:58, William Blevins wrote:
> > Continuation of last email:
> >
> > I imagine that the issue is when context.env.AppendUnique(LIBS=[lib])
> > where I expect lib=None.
> >
> > libfile = check_sysconfig('get_config_var("LIBRARY")')
> > match = re.search('(python.*)\.(a|so|dylib)', libfile)
> > lib = None
> > if match:
> > lib = match.group(1)
> > context.env.AppendUnique(LIBS=[lib])
> >
>
> Almost. It turns out that I expected a certain set of variables to be
> set in `distutils.sysconfig.get_config_vars()`, which wasn't the case on
> Windows.
> The above `match` would be empty (and thus the conditional block wasn't
> executed at all), but a subsequent call to context.env.MergeFlags()
> would still inject 'None', which causes the havoc.
>
> So, it seems I have to revise my attempt to figure out the
> platform-specific compiler flags to build my C/C++ code against Python.
>
> Thanks,
> Stefan
>
> --
>
> ...ich hab' noch einen Koffer in Berlin...
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160403/8a456fd7/attachment.html>
More information about the Scons-users
mailing list