summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/docs/build_systems/pythonpackage.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/docs/build_systems/pythonpackage.rst b/lib/spack/docs/build_systems/pythonpackage.rst
index c2da0281f0..ef06725e01 100644
--- a/lib/spack/docs/build_systems/pythonpackage.rst
+++ b/lib/spack/docs/build_systems/pythonpackage.rst
@@ -324,21 +324,21 @@ mentions that Python 3 is required, this can be specified as:
.. code-block:: python
- depends_on('python@3:', type=('build', 'run')
+ depends_on('python@3:', type=('build', 'run'))
If Python 2 is required, this would look like:
.. code-block:: python
- depends_on('python@:2', type=('build', 'run')
+ depends_on('python@:2', type=('build', 'run'))
If Python 2.7 is the only version that works, you can use:
.. code-block:: python
- depends_on('python@2.7:2.8', type=('build', 'run')
+ depends_on('python@2.7:2.8', type=('build', 'run'))
The documentation may not always specify supported Python versions.