[Numpy-discussion] [numscons] Would having two mandatory scons script per package be acceptable ?
Thu Jun 12 04:23:50 CDT 2008
Matthieu Brucher wrote:
> I don't understand your issues. We build everything in a variant dir
> (what superseds a build dir in SCons 0.98), and we don't have troubles
> indicating where are the sources and where are the targets as SCons
> makes hard links between every source file and the build dir. Perhaps
> I didn't understand exactly what you need, but it seems that just
> calling the sub SConstruct scripts with :
> env.SConscript( 'numpy/SConstruct',
> variant_dir = "$BUILDROOT",
> should be enough so that you don't have to do something more with the BUILDROOT.
Yes, that's basically what I am doing now (modulo some other warts
related to the build_dir thing; I noticed a few bugs when you want to
put everything, including sconsign and configuration files into the
build dir). But you do need two scons scripts files for each package
(don't forget that I am calling a new scons process for every
subpackage, so I cannot have a top scons script to set up everything).
More information about the Numpy-discussion