htgoebel pushed a commit to branch wip-python-build-system in repository guix.
commit f39a50a70a909e97ea2922360771b9281a343998 Author: Hartmut Goebel <h.goe...@crazy-compilers.com> Date: Sun Oct 16 19:32:06 2016 +0200 gnu: python-joblib: Remove python byte-code files from source. * gnu/packages/python.scm (python-joblib, python2-joblib)[source]: Add snippet. --- gnu/packages/python.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index bb65c69..3d4e341 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2583,7 +2583,14 @@ logic-free templating system Mustache.") "j/joblib/joblib-" version ".tar.gz")) (sha256 (base32 - "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")))) + "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")) + (snippet + '(begin + ;; Remove pre-compiled .pyc files from source. + (for-each delete-file-recursively + (find-files "." "__pycache__" #:directories? #t)) + (for-each delete-file (find-files "." "\\.pyc$")) + #t)))) (build-system python-build-system) (native-inputs `(("python-nose" ,python-nose)))