From 6aa5f1ca240b6daf4dbc5c3031fdd697119a49ea Mon Sep 17 00:00:00 2001 From: Hartmut Goebel Date: Sun, 16 Oct 2016 19:32:06 +0200 Subject: [PATCH] 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 | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 117e845672..8190a3bd2b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2649,7 +2649,15 @@ logic-free templating system Mustache.") (uri (pypi-uri "joblib" version)) (sha256 (base32 - "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9")))) + "0787k919zlfmgymprz5bzv0v1df5bbirlf3awrghmjgvkrd9dci9")) + (modules '((guix build utils))) + (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) (arguments `(#:phases