guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/5] gnu: python-zope-testing: Strip byte-code and garbage from s


From: Hartmut Goebel
Subject: [PATCH 3/5] gnu: python-zope-testing: Strip byte-code and garbage from source.
Date: Mon, 10 Oct 2016 15:10:01 +0200

* gnu/package/python.scm (python-zope-testing): Add snippet to strip
  byte-code and garbage from source.
---
 gnu/packages/python.scm | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 345c6a7..a289093 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -6647,7 +6647,13 @@ that have uses outside of the Zope framework.")
                            "/zope.testing/zope.testing-" version ".tar.gz"))
        (sha256
         (base32
-         "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))))
+         "1yvglxhzvhl45mndvn9gskx2ph30zz1bz7rrlyfs62fv2pvih90s"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           ;; Source contains .pyc files and some garbage
+           (for-each delete-file (find-files "." "(\\.pyc|~)$"))
+           #t))))
     (build-system python-build-system)
     (native-inputs
      `(("python-zope-exceptions" ,python-zope-exceptions)))
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]