Revert "gnu: python: Do not retain references to build tools."

This reverts commit 14f8dae6b1, which
was unintentionally pushed (it does not work with Python 3.)
This commit is contained in:
Ludovic Courtès 2015-10-08 17:58:06 +02:00
parent b81378251c
commit 9765b3aeac
1 changed files with 0 additions and 18 deletions

View File

@ -155,24 +155,6 @@
"Lib/test/test_subprocess.py")) "Lib/test/test_subprocess.py"))
(("/bin/sh") (which "sh"))) (("/bin/sh") (which "sh")))
#t)) #t))
(add-before
'install 'do-not-record-configure-flags
(lambda _
;; Remove configure flags from '_sysconfigdata.py' so we don't
;; end up keeping references to the build tools.
(substitute* (find-files "." "sysconfigdata\\.py$")
(("'CONFIG_ARGS':.*")
"'CONFIG_ARGS': \"\",\n"))
#t))
(add-after
'install 'do-not-record-configure-flags-in-makefile
(lambda* (#:key outputs #:allow-other-keys)
;; Likewise.
(let ((out (assoc-ref outputs "out")))
(substitute* (find-files out "^Makefile$")
(("^CONFIG_ARGS[[:blank:]]*=.*$")
"CONFIG_ARGS =\n"))
#t)))
(add-before (add-before
'check 'pre-check 'check 'pre-check
(lambda _ (lambda _