htgoebel pushed a commit to branch wip-python-build-system
in repository guix.

commit 8993087186a0c9e02707b2bb2c3128c088ba7462
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 5bc80aa..ff2be51 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2582,7 +2582,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)))

Reply via email to