From 5dc8ed269441cc5ea210443564f306bd0d5b3dc0 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Mon, 20 Mar 2023 05:22:59 -0600 Subject: 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. --- lib/spack/docs/packaging_guide.rst | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'lib') diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 125384763f..0b1e596abf 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -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 ----- -- cgit v1.2.3-60-g2f50