diff options
| author | Maxime Devos <maximedevos@telenet.be> | 2021-07-14 13:12:56 +0200 |
|---|---|---|
| committer | Mathieu Othacehe <othacehe@gnu.org> | 2021-07-14 15:57:40 +0200 |
| commit | aec20fae9747c541d2ff1512fe52f26428a89c02 (patch) | |
| tree | 59eb81fee29a9b0c1f19037813f5d9c9c9707554 /gnu/packages/python.scm | |
| parent | ad7c6d290e58c3c9cb0ca573bf1ef44d124d11ec (diff) | |
python: Fix reference to input when cross-compiling.
"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'.
Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 227c612a68c..ef47e79632b 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -110,13 +110,14 @@ | |||
| 110 | 110 | ||
| 111 | (define* (customize-site version) | 111 | (define* (customize-site version) |
| 112 | "Generate a install-sitecustomize.py phase, using VERSION." | 112 | "Generate a install-sitecustomize.py phase, using VERSION." |
| 113 | `(lambda* (#:key inputs outputs #:allow-other-keys) | 113 | `(lambda* (#:key native-inputs inputs outputs #:allow-other-keys) |
| 114 | (let* ((out (assoc-ref outputs "out")) | 114 | (let* ((out (assoc-ref outputs "out")) |
| 115 | (site-packages (string-append | 115 | (site-packages (string-append |
| 116 | out "/lib/python" | 116 | out "/lib/python" |
| 117 | ,(version-major+minor version) | 117 | ,(version-major+minor version) |
| 118 | "/site-packages")) | 118 | "/site-packages")) |
| 119 | (sitecustomize.py (assoc-ref inputs "sitecustomize.py")) | 119 | (sitecustomize.py (assoc-ref (or native-inputs inputs) |
| 120 | "sitecustomize.py")) | ||
| 120 | (dest (string-append site-packages "/sitecustomize.py"))) | 121 | (dest (string-append site-packages "/sitecustomize.py"))) |
| 121 | (mkdir-p site-packages) | 122 | (mkdir-p site-packages) |
| 122 | (copy-file sitecustomize.py dest) | 123 | (copy-file sitecustomize.py dest) |
