From c6dd38afb3233ac6c69b91a078b3dbdbe3c94606 Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 7 Nov 2023 19:27:12 +0000 Subject: app-text/pdfminer: remove python_compile_all() The path to the documentation subdirectory is passed to distutils_enable_sphinx, use that. Signed-off-by: Chris Mayo Closes: https://github.com/gentoo/gentoo/pull/33716 Signed-off-by: Sam James --- app-text/pdfminer/pdfminer-20221105.ebuild | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'app-text') diff --git a/app-text/pdfminer/pdfminer-20221105.ebuild b/app-text/pdfminer/pdfminer-20221105.ebuild index fd7b84ae99af..fa3139418efc 100644 --- a/app-text/pdfminer/pdfminer-20221105.ebuild +++ b/app-text/pdfminer/pdfminer-20221105.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..12} ) +PYTHON_COMPAT=( python3_{10..12} ) inherit distutils-r1 MY_P="${PN}.six-${PV}" @@ -22,7 +22,7 @@ IUSE="doc examples" RDEPEND=">=dev-python/charset-normalizer-2.0.0[${PYTHON_USEDEP}] >=dev-python/cryptography-36.0.0[${PYTHON_USEDEP}]" -distutils_enable_sphinx docs "dev-python/sphinx-argparse" +distutils_enable_sphinx docs/source "dev-python/sphinx-argparse" distutils_enable_tests pytest python_prepare_all() { @@ -30,14 +30,6 @@ python_prepare_all() { distutils-r1_python_prepare_all } -python_compile_all() { - # Non-standard doc generation - if use doc; then - PYTHONPATH="${PYTHONPATH}:${BUILD_DIR}/install" sphinx-build docs/source "${WORKDIR}"/_docs - HTML_DOCS=( "${WORKDIR}"/_docs/. ) - fi -} - python_install_all() { use examples && dodoc -r samples distutils-r1_python_install_all -- cgit v1.2.3-65-gdbad