Re: Value nodes as targets
Jason Kenny <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <SN2PR01MB20455385952278C82D07A98084160@SN2PR01MB2045.prod.exchangelabs.com> |
I think i need to go back on this as my prototype started to break when i was scaling it out as Value nodes don't have a namespace.. ie unlike Alias and File/DIr/Entry nodes which only allows one node of a given value to exists, a person can define Value("joe") ten different times and each of these node is different object. It not looked up in a table to see if it already exists to be reused as it would have been with any other node type.
Jason
________________________________
From: Scons-users <[email protected]> on behalf of Jason Kenny <[email protected]>
Sent: Wednesday, June 5, 2019 12:11 PM
To: SCons users mailing list
Subject: Re: [Scons-users] Value nodes as targets
I have such a case at this time. In fact I have a PR open on this as there is a breakage in python3. It is not a big deal to me.. value builder allow a better "glue" that Alias()s for some more dynamic builder cases I am trying to deal with such as a better set of "middleware" builders for cmake and automake.
This is more an annoyance as than strong need. I was just unclear on the expected behavior as we do have examples of Value builders in the man pages.
Jason
________________________________
From: Scons-users <[email protected]> on behalf of Bill Deegan <[email protected]>
Sent: Wednesday, June 5, 2019 8:18 AM
To: SCons users mailing list
Subject: Re: [Scons-users] Value nodes as targets
Regardless of whether they can be command line targets, would that preclude them as being builder targets?
In which case they should provide methods to indicate whether they are built or not yet.
I guess the real question is anyone using them as targets at this point?
We'd not want to break that (or at least without providing alternative mechanism and deprecation cycle.. )
On Tue, Jun 4, 2019 at 10:47 PM Jason Kenny <[email protected]<mailto:[email protected]>> wrote:
I know I can use them in builders as targets and sources. I thought at one point a scons allowed them to be used as command line targets ie ..
scons myvalue
however when I try such as thing I get a error message that the myvalue file is not found. If I make the “myvalue” node to an env.Alias(“myAlias”,myvalue) I can then say
scons myAlias
and the myvalue node will build.
Jason
From: Scons-users <[email protected]<mailto:[email protected]>> On Behalf Of Jonathon Reinhart
Sent: Tuesday, June 4, 2019 9:03 PM
To: SCons users mailing list <[email protected]<mailto:[email protected]>>
Subject: Re: [Scons-users] Value nodes as targets
Value nodes can however be used as source nodes. The textfile builder does this.
On Tue, Jun 4, 2019, 15:38 Jason Kenny <[email protected]<mailto:[email protected]>> wrote:
Hi,
I just wanted to make sure I was correct in the understanding that we cannot use Value nodes as targets for SCons.
A user has to map a value node to a Alias to have SCons call it.
Jason
_______________________________________________
Scons-users mailing list
[email protected]<mailto:[email protected]>
https://pairlist4.pair.net/mailman/listinfo/scons-users<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Feur04.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fpairlist4.pair.net%252Fmailman%252Flistinfo%252Fscons-users%26data%3D02%257C01%257C%257C67bb52255f5c466bfa5508d6e95a0876%257C84df9e7fe9f640afb435aaaaaaaaaaaa%257C1%257C0%257C636952970223855377%26sdata%3DMFmVKFo3U%252FgDAviNVsNfI6cNV6Hc8O%252B9QjSI1ZmKAeI%253D%26reserved%3D0&data=02%7C01%7C%7C3815a2217c3749e26d6808d6e9d8d7cd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636953514868393528&sdata=yR5hOI9LFSmTdALSdMcMZpDFyPtxHezH5ybV4mirIuU%3D&reserved=0>
_______________________________________________
Scons-users mailing list
[email protected]<mailto:[email protected]>
https://pairlist4.pair.net/mailman/listinfo/scons-users<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpairlist4.pair.net%2Fmailman%2Flistinfo%2Fscons-users&data=02%7C01%7C%7C3815a2217c3749e26d6808d6e9d8d7cd%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636953514868413544&sdata=u2KN3tId4qKRYy3cOQhng89FY8r1sdNd%2BvXD5NCUW88%3D&reserved=0>
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users