From 87223a531bfb71956b6e8ef36b6ae39323493a27 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 30 May 2018 10:36:56 -0500 Subject: Document specs with multiple version ranges (#8284) --- lib/spack/docs/packaging_guide.rst | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') 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 -- cgit v1.2.3-60-g2f50