1 |
commit: fbb67f0c7c2ff824248f19cc52d4b4077b0e1e7e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 12:24:51 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 12:35:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbb67f0c |
7 |
|
8 |
dev-python/execnet: Use distutils_enable_sphinx |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/execnet/execnet-1.7.1.ebuild | 25 ++----------------------- |
13 |
1 file changed, 2 insertions(+), 23 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/execnet/execnet-1.7.1.ebuild b/dev-python/execnet/execnet-1.7.1.ebuild |
16 |
index e691e40e3ad..4bbb2505e6e 100644 |
17 |
--- a/dev-python/execnet/execnet-1.7.1.ebuild |
18 |
+++ b/dev-python/execnet/execnet-1.7.1.ebuild |
19 |
@@ -14,27 +14,18 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
20 |
LICENSE="MIT" |
21 |
SLOT="0" |
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
23 |
-IUSE="doc" |
24 |
|
25 |
RDEPEND=">=dev-python/apipkg-1.4[${PYTHON_USEDEP}]" |
26 |
DEPEND="${RDEPEND} |
27 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
28 |
- doc? ( $(python_gen_any_dep ' |
29 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
30 |
- ') |
31 |
- )" |
32 |
+ dev-python/setuptools[${PYTHON_USEDEP}]" |
33 |
|
34 |
PATCHES=( |
35 |
"${FILESDIR}/execnet-1.7.1-tests.patch" |
36 |
) |
37 |
|
38 |
+distutils_enable_sphinx doc |
39 |
distutils_enable_tests pytest |
40 |
|
41 |
-python_check_deps() { |
42 |
- use doc || return 0 |
43 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" |
44 |
-} |
45 |
- |
46 |
python_prepare_all() { |
47 |
# Remove doctest that access an i'net site |
48 |
rm doc/example/test_info.rst || die |
49 |
@@ -51,15 +42,3 @@ python_prepare_all() { |
50 |
|
51 |
distutils-r1_python_prepare_all |
52 |
} |
53 |
- |
54 |
-python_compile_all() { |
55 |
- if use doc; then |
56 |
- sed -i -e 's:^intersphinx_mapping:disabled_&:' \ |
57 |
- doc/conf.py || die |
58 |
- |
59 |
- sphinx-build -b html -d doc/_build/doctrees doc \ |
60 |
- doc/_build/html || die |
61 |
- |
62 |
- HTML_DOCS+=( "doc/_build/html/." ) |
63 |
- fi |
64 |
-} |