On Mon, 2012-11-05 at 15:46 +0000, Cédric LACZNY wrote: > Hi, > > I have a small question relating to the environment variables that easybuild > (v.0.9) is respecting. > when looking at tool/config.py I see a bunch environment variables one might > specify and some required variables. > However, I am a bit puzzled why the sourcePath and repositoryPath are only > listed in the requiredVariables. > Especially the sourcePath would be something I would like being able to set > via an environment variable so as the sources (e.g. tarballs) > are downloaded there and not into the home-dir. > > Can someone please comment on that.
Hi, This is a valid concern, there is no reason at all sourcePath should not be in the environment variables setting as-well, except for we never encountered it ourselves. repositoryPath is actually never even used, it is only an argument for the xxxRepository instance you create in the easybuild_config.py, so I removed it from required variables. https://github.com/hpcugent/easybuild-framework/pull/304 However, we are aware that setting settings with environment variables over config options and cli arguments is very useful, so one of the features to come into one of our next releases (will be after 1.0 for sure) is to replace the default python argument parser with generaloption.py [0] which will automatically take correctly named environment variables and present them as a command line argument to the python application. It would be nice if we could set every config parameter in either the config file, the environment, or the command line, so I created [1] and [2]. I hope this will solve your issues for now, and make everything even more flexible in the future when these tickets get solved. Regards Jens Timmerman [0] https://github.com/hpcugent/VSC-tools/blob/master/lib/vsc/generaloption.py [1] https://github.com/hpcugent/VSC-tools/issues/15 [2] https://github.com/hpcugent/easybuild-framework/issues/303 [3] https://github.com/hpcugent/easybuild-framework/pull/304

