gnu: python-joblib: Remove python byte-code files from source.

* gnu/packages/python.scm (python-joblib, python2-joblib)[source]:
  Add snippet.
This commit is contained in:
Hartmut Goebel 2016-10-16 19:32:06 +02:00
parent bb06aa3446
commit 6aa5f1ca24
No known key found for this signature in database
GPG key ID: 634A8DFFD3F631DF

View file

@ -2649,7 +2649,15 @@ (define-public python-joblib
(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