diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-eccodes/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-eccodes/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/py-eccodes/package.py b/var/spack/repos/builtin/packages/py-eccodes/package.py index 3f1d35a3ee..be3fd54c9f 100644 --- a/var/spack/repos/builtin/packages/py-eccodes/package.py +++ b/var/spack/repos/builtin/packages/py-eccodes/package.py @@ -23,11 +23,11 @@ class PyEccodes(PythonPackage): depends_on("eccodes@2.21.0:+shared", type="run") def setup_build_environment(self, env): - eccodes_libs = self.spec["eccodes:c,shared"].libs + eccodes_spec = self.spec["eccodes:c,shared"] # ECCODES_HOME has the highest precedence when searching for the library with py-findlibs: - env.set("ECCODES_HOME", eccodes_libs.directories[0]) + env.set("ECCODES_HOME", eccodes_spec.prefix) # but not if ecmwflibs (https://pypi.org/project/ecmwflibs/) is in the PYTHONPATH: - env.set("ECMWFLIBS_ECCODES", eccodes_libs.files[0]) + env.set("ECMWFLIBS_ECCODES", eccodes_spec.libs.files[0]) def setup_run_environment(self, env): self.setup_build_environment(env) |