htgoebel pushed a commit to branch wip-python-build-system in repository guix.
commit e0dbbf58ab6b76531a593c11fdd918ed4d728686 Author: Hartmut Goebel <h.goe...@crazy-compilers.com> 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 dbe5016..a1a49d8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -799,7 +799,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.