commit: fef1e07a84528d2f64bc309d570430d8e03aeb5c Author: Arthur Zamarin <arthurzam <AT> gmail <DOT> com> AuthorDate: Mon Aug 9 08:57:53 2021 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon Aug 9 09:20:03 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fef1e07a
dev-python/treq: fix doc generation Signed-off-by: Arthur Zamarin <arthurzam <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21924 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/treq/treq-21.5.0.ebuild | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dev-python/treq/treq-21.5.0.ebuild b/dev-python/treq/treq-21.5.0.ebuild index 74917bd68d0..4a466dd998f 100644 --- a/dev-python/treq/treq-21.5.0.ebuild +++ b/dev-python/treq/treq-21.5.0.ebuild @@ -25,20 +25,16 @@ RDEPEND=" >=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}] " BDEPEND=" - doc? ( dev-python/sphinx - ${RDEPEND} ) test? ( dev-python/httpbin[${PYTHON_USEDEP}] )" -python_compile_all() { - use doc && emake -C "${S}/docs" html -} - -python_install_all() { - use doc && HTML_DOCS=( docs/_build/html/ ) +distutils_enable_sphinx docs - distutils-r1_python_install_all +src_prepare() { + # fix relative path for docs generation + sed -e "s@('..')@('../src')@" -i docs/conf.py || die + distutils-r1_src_prepare } python_test() {
