[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49025] [PATCH v5 09/20] python: Fix reference to input when cross-c
From: |
Maxime Devos |
Subject: |
[bug#49025] [PATCH v5 09/20] python: Fix reference to input when cross-compiling. |
Date: |
Sun, 11 Jul 2021 13:47:12 +0200 |
"sitecustomize.py" is a native input, so look it up
in 'native-inputs', not 'inputs'.
* gnu/packages/python.scm (customize-site): Look up "sizecustomize.py"
in 'native-inputs', not 'inputs'.
---
gnu/packages/python.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 227c612a68..ef47e79632 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -110,13 +110,14 @@
(define* (customize-site version)
"Generate a install-sitecustomize.py phase, using VERSION."
- `(lambda* (#:key inputs outputs #:allow-other-keys)
+ `(lambda* (#:key native-inputs inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(site-packages (string-append
out "/lib/python"
,(version-major+minor version)
"/site-packages"))
- (sitecustomize.py (assoc-ref inputs "sitecustomize.py"))
+ (sitecustomize.py (assoc-ref (or native-inputs inputs)
+ "sitecustomize.py"))
(dest (string-append site-packages "/sitecustomize.py")))
(mkdir-p site-packages)
(copy-file sitecustomize.py dest)
--
2.32.0
- [bug#49025] [PATCH v5 07/20] libgpg-error: Prevent silent miscompilation some systems., (continued)
- [bug#49025] [PATCH v5 07/20] libgpg-error: Prevent silent miscompilation some systems., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 06/20] libgpg-error: Remove trailing #f from phases., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 08/20] libgpg-error: Fix cross-compilation error., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 11/20] openssl: Make the #:phases argument a G-expression., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 13/20] openssl: Move documentation instead of copying and deleting it., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 14/20] openssl: Move all man pages to separate output, not only man3., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 19/20] libelf: Update configure script and config.guess and config.sub., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 20/20] meson: Support cross-compilation., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 09/20] python: Fix reference to input when cross-compiling.,
Maxime Devos <=
- [bug#49025] [PATCH v5 10/20] openssl: Remove trailing #t from phases., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 15/20] openssl: Extract logic for computing CONFIGURE_TARGET_ARCH., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 16/20] glib: Use a correct python in scripts when cross-compiling., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 18/20] glib: Look up "tzdata" in 'native-inputs', not 'inputs'., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 12/20] openssl: Use G-exp machinery for referring to outputs., Maxime Devos, 2021/07/11
- [bug#49025] [PATCH v5 17/20] glib: Verify the cross-compiled python is used in installed scripts., Maxime Devos, 2021/07/11