[Scons-users] Problems with env.Install()

Michel Lestrade michel.lestrade at crosslight.com
Sun Jan 27 12:22:19 EST 2013


Bill,


> I think it's an issue that you're mixing variant_dir with non-variant_dir SConscripts in the same directory and specifying duplicate=0.

>

> esmumps = SConscript(dirs = 'esmumps', duplicate=0,

> exports = {'env':env.Clone(LIBS=[libscotch,libscotcherrexit,env['LIBS']]),'mpi':0})

> SConscript(dirs = 'scotch', duplicate=0,

> exports = {'env':env.Clone(LIBS=[libscotch,libscotcherrexit,env['LIBS']]),'mpi':0})

>

> And then:

> ptesmumps = SConscript(dirs = 'esmumps', variant_dir = 'ptesmumps', duplicate=0,

> exports = {'env':pt.Clone(LIBS=[libscotch,libscotcherrexit,libptscotch,pt['LIBS']]),'mpi':1})

> SConscript(dirs = 'scotch', variant_dir = 'ptscotch', duplicate=0,

> exports = {'env':pt.Clone(LIBS=[libscotch,libscotcherrexit,libptscotch,pt['LIBS']]),'mpi':1})

>

> It'll see the pthread.dll in the non-variant dir build, and so it won't run the install again, and since you specify duplicate=0, it won't copy it to the variant dir.

>

>

You were absolutely correct. Giving a dummy variant_dir name instead of
leaving it blank solves the problem. I guess I have a lot to learn about
the proper use of variant_dir.

Thanks for the help.

Michel Lestrade.


More information about the Scons-users mailing list