[Scons-users] Package Builder & Variant oddity

Mark Holloway hollowaymr at hotmail.com
Thu Sep 12 11:20:32 EDT 2013


I'm seeing a problem when using Install/Package to a local directory when variants are in use.
SConstuct: for variant in ['VariantA','VariantB']: env = Environment( tools=['default','packaging'] ) SConscript( 'SConscript', variant_dir=variant, src_dir='.', duplicate=0, exports={'env':env} )
SConscript: Import('env')
env.Install( 'Test', 'out.txt' )
env.Package( NAME = 'testme', VERSION = '0.0.1', PACKAGEVERSION = 0, PACKAGETYPE = 'zip' )
Log when run from "H:\Working\idea": scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... scons: building associated VariantDir targets: VariantA VariantB Install file: "out.txt" as "VariantB\Test\out.txt" Copy file(s): "out.txt" to "VariantB\testme-0.0.1\Test\out.txt" Copy file(s): "out.txt" to "VariantB\testme-0.0.1\Working\idea\VariantA\Test\out.txt" zip(["VariantB\testme-0.0.1.zip"], ["VariantB\testme-0.0.1\Working\idea\VariantA\Test\out.txt", "VariantB\testme-0.0.1\Test\out.txt"]) Install file: "out.txt" as "VariantA\Test\out.txt" Copy file(s): "out.txt" to "VariantA\testme-0.0.1\Test\out.txt" zip(["VariantA\testme-0.0.1.zip"], ["VariantA\testme-0.0.1\Test\out.txt"]) scons: done building targets.
I've no idea where the full path has appeared from, or more importantly why the additional file copy is happening (and only for one variant).
If I remove one variant from the list, all behaves as expected without the additional file copy.
A bug, or am I confused?
Thanks,Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130912/1f8cc0c3/attachment.html


More information about the Scons-users mailing list