diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2020-11-11 19:21:27 +0100 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2020-11-17 10:04:13 -0800 |
commit | 9a03fd2834b29920ee0c11060dc928f368863606 (patch) | |
tree | e0a0f35776978b6bf46b23cb471d211543879672 /var | |
parent | 44aa94a210e8189a452030afd0627d9e3faac9d1 (diff) | |
download | spack-9a03fd2834b29920ee0c11060dc928f368863606.tar.gz spack-9a03fd2834b29920ee0c11060dc928f368863606.tar.bz2 spack-9a03fd2834b29920ee0c11060dc928f368863606.tar.xz spack-9a03fd2834b29920ee0c11060dc928f368863606.zip |
concretizer: don't require a provider for virtual deps if spec is external
This commit introduces a new rule:
real_node(Package) :- not external(Package), node(Package).
that permits to distinguish between an external node and a
real node that shouldn't trim dependency. It solves the
case of concretizing ninja with an external Python.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin.mock/packages/requires-virtual/package.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/requires-virtual/package.py b/var/spack/repos/builtin.mock/packages/requires-virtual/package.py new file mode 100644 index 0000000000..7c7428b258 --- /dev/null +++ b/var/spack/repos/builtin.mock/packages/requires-virtual/package.py @@ -0,0 +1,16 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +class RequiresVirtual(Package): + """Package that requires a virtual dependency and is registered + as an external. + """ + + homepage = "http://www.example.com" + url = "http://www.example.com/a-1.0.tar.gz" + + version('2.0', '2.0_a_hash') + + depends_on('stuff') |