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

* gnu/packages/python.scm (python-feedgenerator, python2-feedgenerator)
  [source]: Add snippet.
This commit is contained in:
Hartmut Goebel 2016-10-16 19:34:57 +02:00
parent f052ec9a50
commit 7c88bcf4bb
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 9 additions and 1 deletions

View File

@ -2806,7 +2806,15 @@ sources.")
(uri (pypi-uri "feedgenerator" version))
(sha256
(base32
"0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))))
"0mkimp1fpdan4p3882vzcws4l594k71ich4g0wq97jbra7p602n0"))
(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)
(propagated-inputs
`(("python-pytz" ,python-pytz)