EAPI=6
PYTHON_COMPAT=( python3_{6,7,8} )
+DISTUTILS_USE_SETUPTOOLS=rdepend
inherit distutils-r1
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64 ~ia64 x86"
-IUSE="doc"
-
-REQUIRED_USE="doc? ( || ( $(python_gen_useflags 'python2*' pypy) ) )"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
-RDEPEND=""
S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' pypy )
-}
-
-python_compile_all() {
- if use doc; then
- einfo "Generation of documentation"
- "${EPYTHON}" "${FILESDIR}/genextdoc.py" Levenshtein \
- || die "Generation of documentation failed"
- fi
-}
-
-python_install_all() {
- use doc && local HTML_DOCS=( Levenshtein.html )
- distutils-r1_python_install_all
-}