JuliaPy / JuliaPy/PyCall.jl

Using Python_jll with PyCall

Open
#1,025 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.