diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-01-20 15:31:37 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-20 15:38:17 +0100 |
commit | f6a17acb8b7ce70a24991a7ac75b43bbd0383fc8 (patch) | |
tree | 43aef3a46508bf3ba4187530cdb23966323f20fc | |
parent | sys-kernel/gentoo-kernel: stub HPPA "support" (use savedconfig) (diff) | |
download | gentoo-f6a17acb8b7ce70a24991a7ac75b43bbd0383fc8.tar.gz gentoo-f6a17acb8b7ce70a24991a7ac75b43bbd0383fc8.tar.bz2 gentoo-f6a17acb8b7ce70a24991a7ac75b43bbd0383fc8.zip |
python-utils-r1.eclass: Run sphinx-build via EPYTHON
Run sphinx-build via EPYTHON to ensure that the correct Python
executable is being used. Otherwise, sphinx-build runs via
/usr/bin/python* and does not respect the virtualenv boundaries.
Closes: https://bugs.gentoo.org/831565
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r-- | eclass/python-utils-r1.eclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass index aece257e8cba..85de8cb92182 100644 --- a/eclass/python-utils-r1.eclass +++ b/eclass/python-utils-r1.eclass @@ -1250,7 +1250,8 @@ build_sphinx() { sed -i -e 's:^intersphinx_mapping:disabled_&:' \ "${dir}"/conf.py || die # not all packages include the Makefile in pypi tarball - sphinx-build -b html -d "${dir}"/_build/doctrees "${dir}" \ + "${EPYTHON}" -m sphinx.cmd.build \ + -b html -d "${dir}"/_build/doctrees "${dir}" \ "${dir}"/_build/html || die HTML_DOCS+=( "${dir}/_build/html/." ) |