[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 2/7] gnu: python-pytest-xdist: Remove pre-compiled .pyc files
From: |
Hartmut Goebel |
Subject: |
[PATCH v2 2/7] gnu: python-pytest-xdist: Remove pre-compiled .pyc files from source. |
Date: |
Thu, 13 Oct 2016 11:43:26 +0200 |
* 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)
--
2.7.4
- [PATCH v2 0/7] Updated: Some simple or even trivial changes., Hartmut Goebel, 2016/10/13
- [PATCH v2 2/7] gnu: python-pytest-xdist: Remove pre-compiled .pyc files from source.,
Hartmut Goebel <=
- [PATCH v2 1/7] gnu: python2-pytest-runner, python2-msgpack: Remove duplicate definitions., Hartmut Goebel, 2016/10/13
- [PATCH v2 5/7] gnu: python-keyring: Update home-page url., Hartmut Goebel, 2016/10/13
- [PATCH v2 3/7] gnu: python-zope-testing: Strip byte-code and backup-files from source., Hartmut Goebel, 2016/10/13
- [PATCH v2 6/7] gnu: python-pathlib: Update description., Hartmut Goebel, 2016/10/13
- [PATCH v2 4/7] gnu: python-pylockfile: Update home-page url., Hartmut Goebel, 2016/10/13
- [PATCH v2 7/7] guix: python-build-system: Fix an outdated comment., Hartmut Goebel, 2016/10/13
- Re: [PATCH v2 0/7] Updated: Some simple or even trivial changes., Danny Milosavljevic, 2016/10/13