guix-commits
[Top][All Lists]
Advanced

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

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


From: Hartmut Goebel
Subject: 62/104: gnu: python-joblib: Remove python byte-code files from source.
Date: Tue, 15 Nov 2016 21:37:05 +0000 (UTC)

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

commit 6aa5f1ca240b6daf4dbc5c3031fdd697119a49ea
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 117e845..8190a3b 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



reply via email to

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