dev-python/pylint: Disarm unused pytest-runner dep, #618666
authorMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 21:33:16 +0000 (23:33 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 16 May 2017 21:39:49 +0000 (23:39 +0200)
dev-python/pylint/pylint-1.7.1-r1.ebuild

index a26d98dcba5725d927bb4686c6e412f458085a79..4aa65c9ed8783b0951481c86f738ed2175b634ac 100644 (file)
@@ -34,6 +34,13 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
        test? ( ${RDEPEND}
                dev-python/pytest[${PYTHON_USEDEP}] )"
 
+python_prepare_all() {
+       # remove unused dep
+       sed -i -e '/pytest-runner/d' setup.py || die
+
+       distutils-r1_python_prepare_all
+}
+
 python_compile_all() {
        # selection of straight html triggers a trivial annoying bug, we skirt it
        use doc && PYTHONPATH="${S}" emake -e -C doc singlehtml