JuliaPy / JuliaPy/PyCall.jl

Feature request: allow specifying alternative directory for deps.jl

Open
#972 0 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

For example via an environment variable. Here is an example of [the implementation](https://github.com/jlapeyre/PyCall.jl/commit/14aab392b54b1a0fa17835027f41cea81d482b84)

Then, if the environment variable is set, building the module writes `deps.jl` to a specified directory. And on loading, `deps.jl` is read from the same directory.

Together with [`CachePath.jl`]( https://github.com/jlapeyre/CachePath.jl) this avoids the problem of being required to rebuild `PyCall.jl` when you switch `libpython`, or its location.

`CachePath.jl` allows writing and reading a `.ji` file from a specified directory.

This [discourse post](https://discourse.julialang.org/t/cachepath-jl-allows-using-pycall-with-two-libpythons-and-no-recompilation/76325) gives an example of how this works.

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.