[Scons-users] SCons.Node.Python.Value on target_factory

Philipp Kraus philipp.kraus at flashpixx.de
Mon Apr 8 15:04:37 EDT 2013



Am 08.04.2013 um 20:46 schrieb Dirk Bächle:


> Philipp,

>

> On 08.04.2013 19:49, Philipp Kraus wrote:

>> Am 08.04.2013 um 18:56 schrieb Dirk Bächle:

>>

>>> Hi Philipp,

>>>

>>> On 08.04.2013 12:00, Philipp Kraus wrote:

>>>> Am 08.04.2013 um 07:33 schrieb Gary Oberbrunner:

>>>>

>>>>> [...]

>>>>>

>>>>>

>>>>> I try to understand why primary file nodes used by scons, I think I see the build process more theoretically but Scons do it more practical, seems to be a mistake myself. Scons seems to work on physical existing file & dir nodes, so a creating of a pseudo node or URL node is very difficult, because the core for building must be changed.

>>>>>

>>> the SCons core works on Nodes (which can be anything, files, dirs,...)...but most of the wrapper functions that are aiming at being convenient for the standard user, assume that a file/dir node is what everybody wants. And they do this because it is, in fact, what the majority of our users want and need. Compiling and building things, based on files and directories.

>>> Unfortunately, you don't seem to belong to this large group...and have to live with slight inconveniences here and there. One of them follows below...

>> Okay, so can I create my own node type eg my URL-Node, which can process in the default Scons structure?

>> Is there any full documentation? I have found only the class description, without any additional information eg how the objects are handle by the core functions.

>

> I'm sorry, there is no full-fledged documentation, except for the source code and its comments. So, you'll have to get your hands very dirty...dealing with things like the Taskmaster and the signature subsystem. If you wanted to get the new Node type included in the official distribution, this would also require you to write proper tests for all the single Node functions that you redefine in your derived class.

> Lots of work ahead for you, which is actually the reason why Bill, Gary and myself are desperately trying to talk you out of doing it, by offering various alternatives.

> You have been warned now... ;).

^^^^^^^^^^^^^^^^^^^^^^^^^ great, I will test my idea, should be a lot of work to understand the code, but not impossible, so something to learn new

Phil


More information about the Scons-users mailing list