mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/treq: fix doc generation
Signed-off-by: Arthur Zamarin <arthurzam@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21924 Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
committed by
Michał Górny
parent
80a91d5e06
commit
fef1e07a84
@@ -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
|
||||
}
|
||||
distutils_enable_sphinx docs
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/_build/html/ )
|
||||
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user