JuliaPy / JuliaPy/PyCall.jl

Feature request: allow specifying alternative directory for deps.jl

Offen
#972 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Read the linked PyCall.jl implementation, then trace where the module build writes deps.jl and where loading reads it. Done means an environment variable selects the same alternative directory for both operations, supporting separate libpython locations without rebuilding; no test file is named in the issue.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, python
Bereich
build-system, tooling
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.