diff options
author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2016-10-16 19:32:06 +0200 |
---|---|---|
committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2016-11-15 22:31:36 +0100 |
commit | 6aa5f1ca240b6daf4dbc5c3031fdd697119a49ea (patch) | |
tree | f704e2a2148ff269139a4fd3aeb2b3a4f2f80b8f | |
parent | bb06aa344656b044f83cc2f0ac4c7bcbf5cd10e6 (diff) | |
download | guix-6aa5f1ca240b6daf4dbc5c3031fdd697119a49ea.tar.gz |
gnu: python-joblib: Remove python byte-code files from source.
* gnu/packages/python.scm (python-joblib, python2-joblib)[source]: Add snippet.
-rw-r--r-- | gnu/packages/python.scm | 10 |
1 files changed, 9 insertions, 1 deletions
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 |