guix-commits
[Top][All Lists]
Advanced

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

02/07: gnu: python-pytest-xdist: Remove python byte-code files from sour


From: Hartmut Goebel
Subject: 02/07: gnu: python-pytest-xdist: Remove python byte-code files from source.
Date: Thu, 13 Oct 2016 15:23:24 +0000 (UTC)

htgoebel pushed a commit to branch master
in repository guix.

commit de585a7e644fdcb6ea05abde23f900d4242fcb48
Author: Hartmut Goebel <address@hidden>
Date:   Mon Oct 10 11:59:04 2016 +0200

    gnu: python-pytest-xdist: Remove python byte-code files from source.
    
    * gnu/packages/python.scm (python-pytest-xdist,
      python2-pytest-xdist)[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 3c3a00c..eca60bc 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -1764,7 +1764,15 @@ same arguments.")
        (uri (pypi-uri "pytest-xdist" version ".zip"))
        (sha256
         (base32
-         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))))
+         "08rn2l39ds60xshs4js787l84pfckksqklfq2wq9x8ig2aci2pja"))
+       (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
      `(("unzip" ,unzip)



reply via email to

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