[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)
- branch master updated (c8ed730 -> 635a7af), Hartmut Goebel, 2016/10/13
- 06/07: gnu: python-pathlib: Update description., Hartmut Goebel, 2016/10/13
- 02/07: gnu: python-pytest-xdist: Remove python byte-code files from source.,
Hartmut Goebel <=
- 05/07: gnu: python-keyring: Update home-page url., Hartmut Goebel, 2016/10/13
- 01/07: gnu: python2-pytest-runner, python2-msgpack: Remove duplicate definitions., Hartmut Goebel, 2016/10/13
- 04/07: gnu: python-pylockfile: Update home-page url., Hartmut Goebel, 2016/10/13
- 03/07: gnu: python-zope-testing: Strip byte-code and backup-files from source., Hartmut Goebel, 2016/10/13
- 07/07: guix: python-build-system: Fix an outdated comment., Hartmut Goebel, 2016/10/13