summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-10-08 17:58:06 +0200
committerLudovic Courtès <ludo@gnu.org>2015-10-08 18:08:16 +0200
commit9765b3aeac88ae9c9ffc38ed6d1f8dcbd9abca7b (patch)
treeeea31012bce0355a8803953c7b12f8844adcd3d1 /gnu/packages/python.scm
parentb81378251c629615aff0d62ca686bb53a10367de (diff)
Revert "gnu: python: Do not retain references to build tools."
This reverts commit 14f8dae6b1e42cfd37678d64c137932b91656a41, which was unintentionally pushed (it does not work with Python 3.)
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r--gnu/packages/python.scm18
1 files changed, 0 insertions, 18 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 166e8d49446..ee9173b5709 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -156,24 +156,6 @@
156 (("/bin/sh") (which "sh"))) 156 (("/bin/sh") (which "sh")))
157 #t)) 157 #t))
158 (add-before 158 (add-before
159 'install 'do-not-record-configure-flags
160 (lambda _
161 ;; Remove configure flags from '_sysconfigdata.py' so we don't
162 ;; end up keeping references to the build tools.
163 (substitute* (find-files "." "sysconfigdata\\.py$")
164 (("'CONFIG_ARGS':.*")
165 "'CONFIG_ARGS': \"\",\n"))
166 #t))
167 (add-after
168 'install 'do-not-record-configure-flags-in-makefile
169 (lambda* (#:key outputs #:allow-other-keys)
170 ;; Likewise.
171 (let ((out (assoc-ref outputs "out")))
172 (substitute* (find-files out "^Makefile$")
173 (("^CONFIG_ARGS[[:blank:]]*=.*$")
174 "CONFIG_ARGS =\n"))
175 #t)))
176 (add-before
177 'check 'pre-check 159 'check 'pre-check
178 (lambda _ 160 (lambda _
179 ;; 'Lib/test/test_site.py' needs a valid $HOME 161 ;; 'Lib/test/test_site.py' needs a valid $HOME