~ruther/guix-local

e0ed457944d1166d8d2bb53dab6e724989d1576c — Hartmut Goebel 9 years ago c4516ad
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.
1 files changed, 9 insertions(+), 1 deletions(-)

M gnu/packages/python.scm
M gnu/packages/python.scm => gnu/packages/python.scm +9 -1
@@ 825,7 825,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.