[Scons-users] Using/keeping previously generated files in a variant_dir

Dirk Bächle tshortik at gmx.de
Mon Jan 4 14:58:52 EST 2016


Hi Pieter,

On 04.01.2016 17:08, Pieter van der Meulen wrote:
> Hi
>
> I'm using scons to manage a build process which downloads a source file during the build. This file is big and changes periodically. I want to add a “--no-download" option to the scons build that optionally skips downloading this file and uses the previously downloaded version. Without using a variant_dir this works as expected for me, when using a variant_dir this does not work because at the beginning of the build scons removes the downloaded file (/tmp/build/downloadedfile) from the variant_dir.
>
> Is there a way to make scons retain a file in a variant directory? Or is there an alternative or better way in scons to achieve this effect?
>

can you update and extend your example a bit? It's unclear to me where the variant_dir comes into play. Thanks a lot in advance.

Best regards,

Dirk

P.S.: And yes, my answer depends on this info...so it does matter. ;)



More information about the Scons-users mailing list