gnu: python-pytest-xdist: Remove python byte-code files from source.

* gnu/packages/python.scm (python-pytest-xdist,
  python2-pytest-xdist)[source]: Add snippet.
This commit is contained in:
Hartmut Goebel 2016-10-10 11:59:04 +02:00
parent 32d045683d
commit de585a7e64
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 9 additions and 1 deletions

View File

@ -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)