summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-sphinx/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/py-sphinx/package.py b/var/spack/repos/builtin/packages/py-sphinx/package.py
index 5dcb31cef8..923962a2dc 100644
--- a/var/spack/repos/builtin/packages/py-sphinx/package.py
+++ b/var/spack/repos/builtin/packages/py-sphinx/package.py
@@ -36,7 +36,10 @@ class PySphinx(Package):
extends('python', ignore='bin/(pybabel|pygmentize)')
- depends_on('py-setuptools', type='build')
+ # Most Python packages only require py-setuptools as a build dependency.
+ # However, py-sphinx requires py-setuptools during runtime as well.
+ depends_on('py-setuptools', type=nolink)
+
depends_on('py-six@1.4:', type=nolink)
depends_on('py-jinja2@2.3:', type=nolink)
depends_on('py-pygments@2.0:', type=nolink)