[Scons-users] Cloning environments, cannot enable custom tools

Killian De Smedt killiands at gmail.com
Sat Oct 26 06:13:10 EDT 2013


Hi Dirk,


On 25 October 2013 19:05, Dirk Bächle <tshortik at gmx.de> wrote:


> Hi Killian,

>

>

> On 25.10.2013 17:49, Killian De Smedt wrote:

>

>> Hello everybody,

>>

>> I currently have one custom tool, called 'protoc' which adds a new

>> Builder 'Protoc' to my environment.

>>

>>

> this is the protoc Builder from the Wiki's ToolsIndex (

> https://bitbucket.org/russel/**scons_protobuf<https://bitbucket.org/russel/scons_protobuf>),

> right?

>

> In this Tool, the Builder is added to the constrcution environment by

>

> env['BUILDERS']['Protoc'] = ...

>

> which is the old way of doing this. Starting with v0.98 (or something) we

> provide the AddMethod() which should be used instead, and it makes

> Clone()ing environments works as expected.

>


Okay, I changed to using this method, but I should mention that the scons
user guide still promotes this old method (
http://www.scons.org/doc/HTML/scons-user/x3641.html). However, now this
custom builder got copied I got stuck on almost exactly the same error, but
now with the non-custom 'StaticLibrary': AttributeError: 'SConsEnvironment'
object has no attribute 'StaticLibrary'



>

> Would you be able to create an issue report for this at the Tool's repo

> page? You can have a look at some other Tool like Qt4, if you need to fix

> things locally for a fast solution.

>

>

I actually started out with this (or rather the version on the scons wiki,
didn't know of the repo), but created my own builder along the way, which
is now almost completely different. I'll see if I can feed back some
changes now I know of the repository, thanks for the link.



> Hope this helps you a little further.

>

>

Well, I'm a bit further at least, and I learned in the progress, thanks for
the help already,

Kind regards,

Killian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131026/9180ed6c/attachment.htm


More information about the Scons-users mailing list