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

Dirk Bächle tshortik at gmx.de
Mon Jan 4 19:13:41 EST 2016


Pieter,

On 04.01.2016 21:07, Pieter van der Meulen wrote:
> Update because I included a wrong SConstruct file in my first email.
>
>> On 4 Jan 2016, at 17:08, Pieter van der Meulen <Pieter.vanderMeulen at surfnet.nl> 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?
>>

please try downloading the file to the source folder directly in the top-level SConstruct, such that it's not under the influence of 
the "variant_dir".

Best regards,

Dirk




More information about the Scons-users mailing list