commit:     af6a34b2d0de69cb29217bc13982e2d8b4b7b299
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Sun May 14 22:08:43 2017 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Sun May 14 22:10:00 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af6a34b2

dev-python/paver: remove stray pyc files

Bug: https://github.com/paver/paver/issues/143
Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62

 dev-python/paver/paver-1.2.4.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dev-python/paver/paver-1.2.4.ebuild 
b/dev-python/paver/paver-1.2.4.ebuild
index 21964a1e9c0..f559621873c 100644
--- a/dev-python/paver/paver-1.2.4.ebuild
+++ b/dev-python/paver/paver-1.2.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -25,8 +25,12 @@ DEPEND="${RDEPEND}
 
 S=${WORKDIR}/${MY_P}
 
+python_prepare_all() {
+       # https://github.com/paver/paver/issues/143#issuecomment-103943327
+       find paver/tests -name '*.pyc' -delete || die
+       distutils-r1_python_prepare_all
+}
+
 python_test() {
-       # There is a regression in tests
-       # https://github.com/paver/paver/issues/143
        nosetests || die "Testing failed with ${EPYTHON}"
 }

Reply via email to