Hi all, I am making an easyconfig (WIP PR #6984), and to solve an issue I need to set an environment variable pointing to a library in a dependency. The variably logically belongs in this module, not in the dependency, as it is a quirk of this software that requires it to be set.
I thus need to refer to paths in a dependency in a modextravars line in the .eb. I want to set the variable GPAW_FFTWSO to the value $EBROOT_FFTW/lib/libfftw3f.so,$EBROOT_FFTW/lib/libfftw3.so I assume that doing an "import os” and then using os.genenv() is not considered god style in an easyconfig. Is there a better way? Writing $EBROOT_FFTW in the string does not work, it is of course not expanded. Reason: The package GPAW with the iomkl and intel toolchains is linked with Intel MKL. But Intel MKL contains an incomplete implementation of the FFTW interface, and it is apparently incompatible with the real FFTW meaning that calling FFTW functions from both libraries in the same executable causes core dumps. Unfortunately, the optional dependency libvdwxc (which gives extra functionality to GPAW) links against the real FFTW (and cannot use MKL as a key function is missing). Linking GPAW with FFTW before MKL almost works, but unfortunately the Python code does some unholy stuff and tries to find the FFTW library itself, picks up MKL and crases. Setting GPAW_FFTWSO overrrules this. Best regards Jakob -- Jakob Schiøtz, professor, Ph.D. Department of Physics Technical University of Denmark DK-2800 Kongens Lyngby, Denmark http://www.fysik.dtu.dk/~schiotz/

