summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-05-30 10:36:56 -0500
committerGitHub <noreply@github.com>2018-05-30 10:36:56 -0500
commit87223a531bfb71956b6e8ef36b6ae39323493a27 (patch)
tree3323d44fdc5fdf3b5302cccd355ab8bff46f75af /lib
parentbe8077367ddfc6018e2162285497a582156685ec (diff)
downloadspack-87223a531bfb71956b6e8ef36b6ae39323493a27.tar.gz
spack-87223a531bfb71956b6e8ef36b6ae39323493a27.tar.bz2
spack-87223a531bfb71956b6e8ef36b6ae39323493a27.tar.xz
spack-87223a531bfb71956b6e8ef36b6ae39323493a27.zip
Document specs with multiple version ranges (#8284)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/packaging_guide.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index b46caa82e9..2d69bb85ed 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -1565,6 +1565,14 @@ correct way to specify this would be:
depends_on('python@2.6.0:2.6.999')
+A spec can contain multiple version ranges separated by commas.
+For example, if you need Boost 1.59.0 or newer, but there are known
+issues with 1.64.0, 1.65.0, and 1.66.0, you can say:
+
+.. code-block:: python
+
+ depends_on('boost@1.59.0:1.63,1.65.1,1.67.0:')
+
^^^^^^^^^^^^^^^^
Dependency types