Remove unused ignore parameter of extends() directive (#35588)

The `ignore` parameter was only used for `spack activate/deactivate`, and it isn't used
by Spack Environments which have their own handling of file conflicts. We should remove it.

Everything that handles `ignore=` was removed in #29317 and included in 0.19, when we
removed `spack activate` and `spack deactivate` in favor of environments.  So all of these
usages removed here were already being ignored by Spack.
This commit is contained in:
Adam J. Stewart
2023-03-20 05:22:59 -06:00
committed by GitHub
parent 199f71ea48
commit 5dc8ed2694
18 changed files with 1 additions and 70 deletions

View File

@@ -2726,29 +2726,6 @@ variant(s) are selected. This may be accomplished with conditional
extends("python", when="+python")
...
Sometimes, certain files in one package will conflict with those in
another, which means they cannot both be used in a view at the
same time. In this case, you can tell Spack to ignore those files:
.. code-block:: python
class PySncosmo(Package):
...
# py-sncosmo binaries are duplicates of those from py-astropy
extends("python", ignore=r"bin/.*")
depends_on("py-astropy")
...
The code above will prevent everything in the ``$prefix/bin/`` directory
from being linked in a view.
.. note::
You can call *either* ``depends_on`` or ``extends`` on any one
package, but not both. For example you cannot both
``depends_on("python")`` and ``extends("python")`` in the same
package. ``extends`` implies ``depends_on``.
-----
Views
-----