commit:     1840fa88f133431197ad4f656b0789372d19020a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 26 06:56:53 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 26 06:57:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1840fa88

dev-python/pplpy: Fix building docs

We need to call sphinx via `python -m` and to remove source `ppl`
directory, to ensure that the correct site-packages are used.

Closes: https://bugs.gentoo.org/927771
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/pplpy/pplpy-0.8.10.ebuild | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/dev-python/pplpy/pplpy-0.8.10.ebuild 
b/dev-python/pplpy/pplpy-0.8.10.ebuild
index 66bea27018d0..377d267f9379 100644
--- a/dev-python/pplpy/pplpy-0.8.10.ebuild
+++ b/dev-python/pplpy/pplpy-0.8.10.ebuild
@@ -35,15 +35,9 @@ BDEPEND="
        doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
 "
 
-distutils_enable_sphinx docs/source
-
 python_compile_all() {
-       use doc && emake -C docs html
-}
-
-python_install_all(){
-       use doc && local HTML_DOCS=( docs/build/html/. )
-       distutils-r1_python_install_all
+       rm -r ppl || die
+       use doc && build_sphinx docs/source
 }
 
 python_test(){

Reply via email to