diff options
author | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2016-10-10 11:59:04 +0200 |
---|---|---|
committer | Hartmut Goebel <h.goebel@crazy-compilers.com> | 2016-10-13 17:22:40 +0200 |
commit | de585a7e644fdcb6ea05abde23f900d4242fcb48 (patch) | |
tree | 82b8a9d92fef6653d8970417bf0a59da4efde5d7 /gnu/packages | |
parent | 32d045683d2db1e33bc8fa1b77d1ef90ca2ddb66 (diff) | |
download | patches-de585a7e644fdcb6ea05abde23f900d4242fcb48.tar patches-de585a7e644fdcb6ea05abde23f900d4242fcb48.tar.gz |
gnu: python-pytest-xdist: Remove python byte-code files from source.
* gnu/packages/python.scm (python-pytest-xdist,
python2-pytest-xdist)[source]: Add snippet.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/python.scm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 3c3a00c6b0..eca60bc251 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) |