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.
This commit is contained in:
Hartmut Goebel 2016-09-28 11:40:26 +02:00
parent c4516ad206
commit e0ed457944
No known key found for this signature in database
GPG Key ID: 634A8DFFD3F631DF
1 changed files with 9 additions and 1 deletions

View File

@ -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.