Skip to content

Commit 80d2988

Browse files
set JULIA_PYTHONCALL_EXE instead of JULIA_PYTHONCALL_EXECUTABLE in juliacall (#814)
JuliaCall set JULIA_PYTHONCALL_EXECUTABLE, which nothing reads, so the Python executable was not visible to Julia at the process level and child Julia processes resolved a new CondaPkg environment. Fixes #813 Co-authored-by: Miles Cranmer <miles.cranmer@gmail.com>
1 parent 2cd566a commit 80d2988

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Unreleased
44
* Bug fix: avoid precompilation cache miss when `check_bounds` option set.
5+
* Bug fix: `juliacall` set the environment variable `JULIA_PYTHONCALL_EXECUTABLE`
6+
instead of `JULIA_PYTHONCALL_EXE`, so child Julia processes resolved a new
7+
CondaPkg environment.
58

69
## 0.9.35 (2026-06-08)
710
* Add option `lib` to JuliaCall. Setting this will skip the discovery subprocess.

‎pysrc/juliacall/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def args_from_config(config):
256256

257257
# override some environment variables
258258
# we do this here because PythonCall is initialised during jl_init if it is in a sysimg
259-
os.environ['JULIA_PYTHONCALL_EXECUTABLE'] = sys.executable or ''
259+
os.environ['JULIA_PYTHONCALL_EXE'] = sys.executable or ''
260260
os.environ['__JULIA_PYTHONCALL_EMBEDDED_LIBPTR__'] = hex(c.pythonapi._handle)
261261

262262
# initialise julia

0 commit comments

Comments
 (0)