Patchwork [04/14] gnu: python-setuptools: remove pre-built binaries.

login
register
mail settings
Submitter Hartmut Goebel
Date Sept. 28, 2016, 1:58 p.m.
Message ID <1475071107-10765-5-git-send-email-h.goebel@crazy-compilers.com>
Download mbox | patch
Permalink /patch/16108/
State New
Headers show

Comments

Hartmut Goebel - Sept. 28, 2016, 1:58 p.m.
These are for Windows anyway.

* gnu/packages/python.scm (python-setuptools): Add source snippet to
  delete *.exe files.
---
 gnu/packages/python.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

Patch

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b13e41f..d72bb70 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -816,7 +816,12 @@  have been used.")
                           version ".tar.gz"))
       (sha256
        (base32
-        "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
+        "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))
+      (modules '((guix build utils)))
+      (snippet
+       '(begin
+          (for-each delete-file (find-files "setuptools" "^(cli|gui).*\\.exe$"))
+          #t))))
     (build-system python-build-system)
     ;; FIXME: Tests require pytest, which itself relies on setuptools.
     ;; One could bootstrap with an internal untested setuptools.