guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Hartmut Goebel
Subject: 62/103: gnu: python-joblib: Remove python byte-code files from source.
Date: Tue, 25 Oct 2016 18:00:40 +0000 (UTC)

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

commit 242fde512a53e6d9c7e69892166e9d5c4091a6ac
Author: Hartmut Goebel <address@hidden>
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 |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index d1313dc..c17a2f7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2569,7 +2569,15 @@ logic-free templating system Mustache.")
                                   "j/joblib/joblib-" version ".tar.gz"))
               (sha256
                (base32
-                "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))))
+                "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3"))
+       (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)
     (native-inputs
      `(("python-nose"       ,python-nose)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]