gnu: python-flake8: Remove python byte-code files from source.

* gnu/packages/python.scm (python-flake8)[source]: Add snippet.
This commit is contained in:
Hartmut Goebel 2016-10-25 18:15:29 +02:00
parent bac6816879
commit 011271c769
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 9 additions and 1 deletions

View File

@ -5602,7 +5602,15 @@ complexity of Python source code.")
(uri (pypi-uri "flake8" version)) (uri (pypi-uri "flake8" version))
(sha256 (sha256
(base32 (base32
"0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc")))) "0bs9cz4fr99r2rwig1b8jwaadl1nan7kgpdzqwj0bwbckwbmh7nc"))
(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) (build-system python-build-system)
(propagated-inputs (propagated-inputs
`(("python-pep8" ,python-pep8) `(("python-pep8" ,python-pep8)