From 2d6be8c0be46c07256a267f89a00f66db0d95edd Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Wed, 17 Feb 2016 11:34:43 +0100 Subject: [PATCH] dev-python/oauth2client: Exclude tests from installation Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher --- dev-python/oauth2client/oauth2client-2.0.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev-python/oauth2client/oauth2client-2.0.0.ebuild b/dev-python/oauth2client/oauth2client-2.0.0.ebuild index db2bdb7b18087..23f97404115d9 100644 --- a/dev-python/oauth2client/oauth2client-2.0.0.ebuild +++ b/dev-python/oauth2client/oauth2client-2.0.0.ebuild @@ -32,6 +32,13 @@ DEPEND="${RDEPEND} # Needs network RESTRICT=test +python_prepare_all() { + sed \ + -e "s:find_packages():find_packages(exclude=['tests']):" \ + -i setup.py || die + distutils-r1_python_prepare_all +} + python_test() { nosetests || die }