mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-07 05:57:07 -08:00
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>
This commit is contained in:
@@ -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/." )
|
||||
|
||||
Reference in New Issue
Block a user