[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: python-boot0: Don't install tests.
From: |
guix-commits |
Subject: |
02/02: gnu: python-boot0: Don't install tests. |
Date: |
Wed, 19 Jan 2022 06:07:30 -0500 (EST) |
efraim pushed a commit to branch core-updates
in repository guix.
commit 80194d9e47f9f50602a5a97ecd33fb9a95dfe03d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Jan 19 13:06:23 2022 +0200
gnu: python-boot0: Don't install tests.
* gnu/packages/commencement.scm (python-boot0)[arguments]: Add phase to
remove installed tests.
---
gnu/packages/commencement.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 3631a93fb5..22c76e16d2 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -3125,6 +3125,13 @@ memoized as a function of '%current-system'."
;; Prevent the 'ossaudiodev' extension from being
;; built, since it requires Linux headers.
(("'linux', ") ""))))
+ (add-after 'install 'remove-tests
+ (lambda* (#:key outputs #:allow-other-keys)
+ (delete-file-recursively
+ (string-append (assoc-ref outputs "out")
+ "/lib/python"
+ ,(version-major+minor version)
+ "/test"))))
,@(if (hurd-system?)
`((add-before 'build 'fix-regen
(lambda* (#:key inputs #:allow-other-keys)