commit: c33ed760788bda18e5f00396bf777f6eec69e45e
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 13 11:38:26 2016 +0000
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org>
CommitDate: Sun Mar 13 11:38:26 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c33ed760
app-shells/thefuck: Remove pip dependency in setup.py
Gentoo-Bug: 577274
Package-Manager: portage-2.2.28
app-shells/thefuck/thefuck-3.4.ebuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/app-shells/thefuck/thefuck-3.4.ebuild
b/app-shells/thefuck/thefuck-3.4.ebuild
index d75c92f..15c70cf 100644
--- a/app-shells/thefuck/thefuck-3.4.ebuild
+++ b/app-shells/thefuck/thefuck-3.4.ebuild
@@ -25,6 +25,11 @@ DEPEND="test? ( ${RDEPEND}
dev-python/pytest[${PYTHON_USEDEP}] )
dev-python/setuptools[${PYTHON_USEDEP}]"
+src_prepare() {
+ sed -i -e "/import pip/s/^/#/" -e "/pip.__version__/,+3 s/^/#/"
setup.py || die
+ distutils-r1_src_prepare
+}
+
python_test() {
py.test || die
}