guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: python: Do not record configure flags.


From: Ludovic Courtès
Subject: 01/03: gnu: python: Do not record configure flags.
Date: Sun, 15 Nov 2015 21:29:27 +0000

civodul pushed a commit to branch tk-update
in repository guix.

commit d48d60a6e067df66e6c719267c229e0ec39e92ef
Author: Ludovic Courtès <address@hidden>
Date:   Sun Nov 15 17:51:12 2015 +0100

    gnu: python: Do not record configure flags.
    
    This reduces the number of run-time dependencies of python-2 from 25 to
    15, corresponding only to ~4 MiB.
    
    * gnu/packages/python.scm (python-2)[arguments]: Add
      'do-not-record-configure-flags' phase.
---
 gnu/packages/python.scm |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index bbd96b1..a0d0bee 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -165,6 +165,15 @@
              ;; gnu-build-system.scm.
              (setenv "SOURCE_DATE_EPOCH" "1")
              #t))
+          (add-before 'configure 'do-not-record-configure-flags
+            (lambda _
+              ;; Remove configure flags from the installed '_sysconfigdata.py'
+              ;; and 'Makefile' so we don't end up keeping references to the
+              ;; build tools.
+              (substitute* "configure"
+                (("^CONFIG_ARGS=.*$")
+                 "CONFIG_ARGS=''\n"))
+              #t))
           (add-before
            'check 'pre-check
            (lambda _



reply via email to

[Prev in Thread] Current Thread [Next in Thread]