Skip to content

Commit 6b6eb37

Browse files
authored
avoid precompile cache miss from check-bounds option (#806)
Co-authored-by: Christopher Rowley <github.com/cjdoris>
1 parent 6024344 commit 6b6eb37

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎CHANGELOG.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Unreleased
4+
* Bug fix: avoid precompilation cache miss when `check_bounds` option set.
5+
36
## 0.9.35 (2026-06-08)
47
* Add option `lib` to JuliaCall. Setting this will skip the discovery subprocess.
58
* Add support for using a system image in `juliacall` that has `PythonCall` baked in.

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ classifiers = [
1313
"Operating System :: OS Independent",
1414
]
1515
requires-python = ">=3.10, <4"
16-
dependencies = ["juliapkg >=0.1.24, <0.2"]
16+
dependencies = ["juliapkg >=0.1.26, <0.2"]
1717

1818
[dependency-groups]
1919
dev = [

‎pysrc/juliacall/__init__.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,18 @@ def args_from_config(config):
198198
# `exepath` and `project` are set by the user.
199199
import juliapkg
200200

201+
# Explicitly resolve so we can pass through julia_args. This ensures that any
202+
# precompilation done by juliapkg matches how we launch julia, avoiding
203+
# cache misses.
204+
julia_args = [
205+
"--" + opt[4:].replace("_", "-") + "=" + CONFIG[opt]
206+
for opt in [
207+
"opt_check_bounds",
208+
]
209+
if CONFIG[opt] is not None
210+
]
211+
juliapkg.resolve(julia_args=julia_args)
212+
201213
# Find the Julia executable and project
202214
CONFIG['exepath'] = exepath = juliapkg.executable()
203215
CONFIG['project'] = project = juliapkg.project()

0 commit comments

Comments
 (0)