dev-python/paver: remove stray pyc files
authorMike Gilbert <floppym@gentoo.org>
Sun, 14 May 2017 22:08:43 +0000 (18:08 -0400)
committerMike Gilbert <floppym@gentoo.org>
Sun, 14 May 2017 22:10:00 +0000 (18:10 -0400)
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

index 21964a1e9c07a2b753d1d88cf8da6520ac435daf..f559621873cd0bc9f078df4c4168ff7525b1b91e 100644 (file)
@@ -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}"
 }