aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorHartmut Goebel <h.goebel@crazy-compilers.com>2016-10-16 19:34:57 +0200
committerHartmut Goebel <h.goebel@crazy-compilers.com>2016-11-15 22:31:37 +0100
commit7c88bcf4bb585050448d275dd0bb72fad660dda6 (patch)
tree5b86ff8529eed7314399c6894fc2ca558d6c4eed /gnu/packages
parentf052ec9a509d78aa5f0f1034241435a91a0a246f (diff)
downloadguix-7c88bcf4bb585050448d275dd0bb72fad660dda6.tar.gz
guix-7c88bcf4bb585050448d275dd0bb72fad660dda6.zip
gnu: python-feedgenerator: Remove python byte-code files from source.
* gnu/packages/python.scm (python-feedgenerator, python2-feedgenerator) [source]: Add snippet.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 7555711607..d05035ea81 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -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)