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>
This commit is contained in:
		
							parent
							
								
									ad7c6d290e
								
							
						
					
					
						commit
						aec20fae97
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
		Reference in a new issue