[Scons-users] enscons & tox

Russel Winder russel at winder.org.uk
Wed Jul 13 05:53:56 EDT 2016

On Wed, 2016-07-13 at 01:30 +0000, Daniel Holth wrote:
> Got the enscons project far enough along that it can build a CPython
> extension https://bitbucket.org/dholth/cryptacular on Windows, OSX
> and
> Linux and run tox on the result, emulating the annoying "setup.py
> install
> --many-options" by calling out to pip. Also ported a little Rust
> Python
> extension example to the system, which is probably more interesting
> because
> distutils doesn't have a nice way to do that.
> https://github.com/dholth/hello-pyrust . Making it pretty may come
> later,
> it isn't now.
> How do I avoid this warning about different environments?
> scons: warning: Two different environments were specified for target
> dist/hello_pyrust-0.1.0-cp35-cp35m-linux_x86_64.whl, but they appear
> to
> have the same action: zip(target, source, env)
> I tried changing my tool to only build the zip file the first time
> SConstruct calls env.Whl() to add non-metadata files to the wheel
> rather
> than when the tool is initialized, but the error persists.

It means you have the same target being created with two different
environments or build rules. SCons is not clever enough to resolve this
in the case where the environments are actually the same. I find I get
this a lot with certain types of small build I do, and the only way is
to manually extract: create the compilation artefact and then use the
build result not the source as the dependency. Basically this is
manually building the dependency graph. Annoying but not a big

> Any plans to port Ant Glob to SCons, perhaps the WAF implementation?

I keep suggesting being able to use ** in the Glob patterns. I think it
got agreed many, many moons ago, but no-one has had the time to realise
it as yet. One of the penalties of Scons being a pure volunteer project
with no direct or indirect organizational backing.


Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160713/cb035ae4/attachment.pgp>

More information about the Scons-users mailing list