htgoebel pushed a commit to branch wip-python-build-system
in repository guix.

commit cd1c4c21fbbf10721a523385e6c3396ede4bb48d
Author: Hartmut Goebel <[email protected]>
Date:   Tue Oct 25 17:37:43 2016 +0200

    gnu: python-tables: Remove python byte-code files from source.
    
    * gnu/packages/python.scm (python-tables)[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 a9a46f7..6f49043 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5731,7 +5731,15 @@ printing of sub-tables by specifying a row range.")
        (uri (pypi-uri "tables" version))
        (sha256
         (base32
-         "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))))
+         "117s6w7s3yxafpmf3zz3svana7xfrsviw01va1xp7h8ylx8v6r1m"))
+       (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)
     (arguments
      `(;; FIXME: python-build-system does not pass configure-flags to "build"

Reply via email to