guix-commits
[Top][All Lists]
Advanced

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

54/57: gnu: python-setuptools: remove pre-built binaries from source.


From: Hartmut Goebel
Subject: 54/57: gnu: python-setuptools: remove pre-built binaries from source.
Date: Thu, 13 Oct 2016 15:20:36 +0000 (UTC)

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

commit fd1660196a160dd62b009ac98b98526f700d37a4
Author: Hartmut Goebel <address@hidden>
Date:   Wed Sep 28 11:40:26 2016 +0200

    gnu: python-setuptools: remove pre-built binaries from source.
    
    These are used to build self-extracting installers for Windows.
    
    * gnu/packages/python.scm (python-setuptools, python2-setuptools) [source]:
      Add snippet to delete *.exe files.
---
 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 54fc1b8..746c8c4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -798,7 +798,15 @@ have been used.")
                           version ".tar.gz"))
       (sha256
        (base32
-        "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))))
+        "0kc7rbav00ks6iaw14p38y81q12fx0lpkhgf5m97xc04f5r318ig"))
+      (modules '((guix build utils)))
+      (snippet
+       '(begin
+          ;; Remove included binaries which are used to build self-extracting
+          ;; installers for Windows.
+          ;; TODO: Find some way to build them ourself so we can include them.
+          (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.



reply via email to

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