diff --git a/var/spack/repos/builtin/packages/python/package.py b/var/spack/repos/builtin/packages/python/package.py index 222b3f97a98..b7e0a27703c 100644 --- a/var/spack/repos/builtin/packages/python/package.py +++ b/var/spack/repos/builtin/packages/python/package.py @@ -443,7 +443,7 @@ def configure_args(self): # setup.py needs to be able to read the CPPFLAGS and LDFLAGS # as it scans for the library and headers to build - link_deps = spec.dependencies('link') + link_deps = spec.dependencies(deptype='link') if link_deps: # Header files are often included assuming they reside in a