diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-25 13:24:52 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-25 13:35:05 +0100 |
commit | 97e0420ad66d0705edd16616dafa2654f9ec79cb (patch) | |
tree | 06b1e35204e10fd32eeb311631cec2ee60a16f61 /dev-python/flask/flask-1.1.1.ebuild | |
parent | dev-python/execnet: Use distutils_enable_sphinx (diff) | |
download | gentoo-97e0420ad66d0705edd16616dafa2654f9ec79cb.tar.gz gentoo-97e0420ad66d0705edd16616dafa2654f9ec79cb.tar.bz2 gentoo-97e0420ad66d0705edd16616dafa2654f9ec79cb.zip |
dev-python/flask: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/flask/flask-1.1.1.ebuild')
-rw-r--r-- | dev-python/flask/flask-1.1.1.ebuild | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/dev-python/flask/flask-1.1.1.ebuild b/dev-python/flask/flask-1.1.1.ebuild index df4778024021..3cfa93664536 100644 --- a/dev-python/flask/flask-1.1.1.ebuild +++ b/dev-python/flask/flask-1.1.1.ebuild @@ -22,7 +22,7 @@ fi LICENSE="BSD" SLOT="0" -IUSE="doc examples test" +IUSE="examples test" RESTRICT="!test? ( test )" RDEPEND="dev-python/click[${PYTHON_USEDEP}] @@ -32,7 +32,6 @@ RDEPEND="dev-python/click[${PYTHON_USEDEP}] >=dev-python/werkzeug-0.15[${PYTHON_USEDEP}]" DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') ) test? ( dev-python/pytest[${PYTHON_USEDEP}] )" PATCHES=( @@ -40,20 +39,7 @@ PATCHES=( "${FILESDIR}/flask-1.1.1-py38.patch" ) -python_check_deps() { - use doc || return 0 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -python_prepare_all() { - # Prevent un-needed d'loading - sed -e "s/ 'sphinx.ext.intersphinx',//" -i docs/conf.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - use doc && emake -C docs html -} +distutils_enable_sphinx docs python_test() { PYTHONPATH=${S}/examples/flaskr:${S}/examples/minitwit${PYTHONPATH:+:${PYTHONPATH}} \ @@ -62,7 +48,6 @@ python_test() { python_install_all() { use examples && dodoc -r examples - use doc && HTML_DOCS=( docs/_build/html/. ) distutils-r1_python_install_all } |