guix-commits
[Top][All Lists]
Advanced

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

98/103: gnu: python-flake8-2.2.4: Remove python byte-code files from sou


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

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

commit acbfbaf06baf24b798d10dd6f996b03be1ba167e
Author: Hartmut Goebel <address@hidden>
Date:   Tue Oct 25 17:37:24 2016 +0200

    gnu: python-flake8-2.2.4: Remove python byte-code files from source.
    
    * gnu/packages/python.scm (python-flake8-2.2.4)[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 597de7f..066c590 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5242,7 +5242,15 @@ complexity of Python source code.")
         (uri (pypi-uri "flake8" version))
         (sha256
           (base32
-            "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))))))
+            "1r9wsry4va45h1rck5hxd3vzsg2q3y6lnl6pym1bxvz8ry19jwx8"))
+        (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))))))
 
 (define-public python2-flake8-2.2.4
   (package-with-python2 python-flake8-2.2.4))



reply via email to

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