[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
96/104: gnu: python-flake8: Remove python byte-code files from source.
From: |
Hartmut Goebel |
Subject: |
96/104: gnu: python-flake8: Remove python byte-code files from source. |
Date: |
Tue, 15 Nov 2016 21:37:08 +0000 (UTC) |
htgoebel pushed a commit to branch python-build-system
in repository guix.
commit 011271c769552b284cf7cf2081eb28e999f42e41
Author: Hartmut Goebel <address@hidden>
Date: Tue Oct 25 18:15:29 2016 +0200
gnu: python-flake8: Remove python byte-code files from source.
* gnu/packages/python.scm (python-flake8)[source]: Add snippet.
---
gnu/packages/python.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index a2aebbd..823624f 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5602,7 +5602,15 @@ complexity of Python source code.")
(uri (pypi-uri "flake8" version))
(sha256
(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)
(propagated-inputs
`(("python-pep8" ,python-pep8)
- 62/104: gnu: python-joblib: Remove python byte-code files from source., (continued)
- 62/104: gnu: python-joblib: Remove python byte-code files from source., Hartmut Goebel, 2016/11/15
- 20/104: gnu: Fix python inputs, part 1: all inputs become propagated-inputs., Hartmut Goebel, 2016/11/15
- 78/104: gnu: python-wsgi-intercept: Correct inputs., Hartmut Goebel, 2016/11/15
- 74/104: gnu: python-zope-location: Correct inputs., Hartmut Goebel, 2016/11/15
- 79/104: gnu: python-urllib3: update comment., Hartmut Goebel, 2016/11/15
- 66/104: gnu: python-scikit-image: Correct inputs., Hartmut Goebel, 2016/11/15
- 86/104: gnu: python-prompt-toolkit: Correct inputs, Hartmut Goebel, 2016/11/15
- 87/104: gnu: python-consul: Correct inputs., Hartmut Goebel, 2016/11/15
- 68/104: gnu: python2-scikit-image: Remove needless native-input and inheritance., Hartmut Goebel, 2016/11/15
- 89/104: gnu: python-nautilus: Correct inputs, Hartmut Goebel, 2016/11/15
- 96/104: gnu: python-flake8: Remove python byte-code files from source.,
Hartmut Goebel <=
- 99/104: gnu: python-scikit-learn: Remove useless property "python2-variant"., Hartmut Goebel, 2016/11/15
- 100/104: gnu: python-betamax: fix inputs., Hartmut Goebel, 2016/11/15
- 12/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 1a), Hartmut Goebel, 2016/11/15
- 17/104: gnu: Remove python-setuptools and python2-setuptools from inputs (part 4b), Hartmut Goebel, 2016/11/15
- 46/104: gnu: python-scipy: Fix build., Hartmut Goebel, 2016/11/15
- 53/104: gnu: python-subunit, python-testrepository: Fix inputs, Hartmut Goebel, 2016/11/15
- 44/104: gnu: python-numpy-bootstrap, python-numpy: Fix build., Hartmut Goebel, 2016/11/15
- 64/104: gnu: python-feedgenerator: Remove python byte-code files from source., Hartmut Goebel, 2016/11/15
- 67/104: gnu: python2-scikit-image: Remove needless propagated-input., Hartmut Goebel, 2016/11/15
- 75/104: gnu: python-configobj: Correct inputs., Hartmut Goebel, 2016/11/15