Using Python_jll with PyCall
- Lingua principale
- Julia
- Stelle
- 1.5k
- Fork
- 186
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Is there a reason there's not an easy way to use Python_jll's Python with PyCall, something like `ENV["PYTHON"]="Python_jll"` or something?
As it stands to get the linking right you can do
```julia
LD_LIBRARY_PATH=$(julia -e "using Python_jll; print(Python_jll.LIBPATH[])") \
PYTHON=$(julia -e "using Python_jll; print(Python_jll.python_path)") \
julia -e 'using Pkg; Pkg.build("PyCall")'
```
and then you need `using Python_jll, PyCall` but this could presumably be automated here.
Would a PR adding this be something of interest?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start by reviewing PyCall's Pkg.build("PyCall") path and the documented PYTHON and LD_LIBRARY_PATH inputs, then inspect how Python_jll exposes LIBPATH and python_path. Done means PyCall can use Python_jll without the manual environment-variable commands while preserving the stated using Python_jll, PyCall workflow.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- build-system, tooling
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100