[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from
From: |
Hartmut Goebel |
Subject: |
[PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source. |
Date: |
Mon, 10 Oct 2016 15:10:00 +0200 |
* gnu/packages/python.scm (python-pytest-xdist): Add source 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 f1e9264..345c6a7 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
+ ;; Source archive contains .pyc files
+ (for-each delete-file-recursively
+ (find-files "." "__pychache__" #:directories? #t))
+ (for-each delete-file (find-files "." "\\.pyc$"))
+ #t))))
(build-system python-build-system)
(native-inputs
`(("unzip" ,unzip)
--
2.7.4
[PATCH 2/5] gnu: python-pytest-xdist: Remove python byte-code files from source.,
Hartmut Goebel <=
[PATCH 5/5] guix: python-build-system: Fix an outdated comment., Hartmut Goebel, 2016/10/10
[PATCH 4/5] gnu: python.scm: Update some home-page urls and descriptions., Hartmut Goebel, 2016/10/10