Commit 395c4d9
committed
Ship juliapkg.json with the documented solver stack (fixes #175)
`load_julia_packages` was running `Pkg.activate("diffeqpy", shared=true)`
before adding the solver packages, which moved Julia off juliacall's
managed project (`$CONDA_PREFIX/julia_env`, where PythonCall is pinned
to the ABI-matched version) and into a separate shared environment. The
shared environment then resolved an unconstrained PythonCall, breaking
the juliacall <-> PythonCall ABI and segfaulting on import.
Declare the solver stack in `diffeqpy/juliapkg.json` so juliacall
installs DifferentialEquations, OrdinaryDiffEq, StochasticDiffEq,
DelayDiffEq, Sundials, DiffEqCallbacks, and ModelingToolkit into its
managed project alongside PythonCall, with proper version resolution.
Compat ranges span the doc-tested major and the current major (e.g.
DifferentialEquations "7, 8") so the docs keep working under the
recent v8 metapackage where some sub-solvers are no longer transitive.
Drop the `Pkg.activate` line from `load_julia_packages` so the lazy
install path used by the GPU sub-modules (cuda/amdgpu/metal/oneapi)
also targets juliacall's managed project.
https://claude.ai/code/session_01G6GjTpy5ZKWq78zfdCzV4y1 parent f0ce5ad commit 395c4d9
3 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
37 | | - | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments