[Scons-users] Are there "pseudo"-File entries in SCons

Mats Wichmann mats at wichmann.us
Sat Jun 6 10:31:34 EDT 2020


On 6/6/20 2:12 AM, Russel Winder wrote:
> Hi,
> 
> I know I probably should know the answer to this, but…
> 
> I have a bit of generated text that needs to be a File entry in the SCons
> tree. Obviously I can hack around with temporary files using the standard
> Python stuff, but…
> 
> Does SCons have a way of treating a bit of text as a File entry doing all the
> needful for the Dir entry, etc?
> 
> (It would seem that with all the Base and Entry and _morph stuff, morphing a
> bit of text into a File entry ought to be easy, the question is is it
> worthwhile or is it best just to enforce use of Python file stuff because it
> isn't an important use case.)

well, a file is a file so it's not clear what "text that needs to be a
File entry" means.

have you looked at Value nodes?  is what you need something completely
different?



More information about the Scons-users mailing list