From: Justin Lecher Date: Wed, 17 Feb 2016 10:34:43 +0000 (+0100) Subject: dev-python/oauth2client: Exclude tests from installation X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=2d6be8c0be46c07256a267f89a00f66db0d95edd;p=gentoo.git dev-python/oauth2client: Exclude tests from installation Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher --- diff --git a/dev-python/oauth2client/oauth2client-2.0.0.ebuild b/dev-python/oauth2client/oauth2client-2.0.0.ebuild index db2bdb7b1808..23f97404115d 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 }