From 6c9272677be5941e6010573bbdc99bf48a5e644d Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 29 Dec 2020 01:04:13 -0600 Subject: [PATCH] py-cartopy: specify where deps are found (#20597) --- var/spack/repos/builtin/packages/py-cartopy/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/py-cartopy/package.py b/var/spack/repos/builtin/packages/py-cartopy/package.py index 5affefdf9e..37298d4fc1 100644 --- a/var/spack/repos/builtin/packages/py-cartopy/package.py +++ b/var/spack/repos/builtin/packages/py-cartopy/package.py @@ -72,6 +72,10 @@ def setup_build_environment(self, env): # Needed for `spack test run py-cartopy` setup_run_environment = setup_build_environment + # Needed for `spack test run py-foo` where `py-foo` depends on `py-cartopy` + def setup_dependent_run_environment(self, env, dependent_spec): + self.setup_build_environment(env) + def build_ext_args(self, spec, prefix): args = [ spec['geos'].headers.include_flags,