Skip to content

Commit b26f202

Browse files
authored
use juliapkg.libjulia() for faster init in juliacall (#782)
Co-authored-by: Christopher Rowley <github.com/cjdoris>
1 parent 6aeeba0 commit b26f202

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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.21, <0.2"]
16+
dependencies = ["juliapkg >=0.1.24, <0.2"]
1717

1818
[dependency-groups]
1919
dev = [

pysrc/juliacall/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ def args_from_config(config):
201201
# Find the Julia executable and project
202202
CONFIG['exepath'] = exepath = juliapkg.executable()
203203
CONFIG['project'] = project = juliapkg.project()
204+
if libpath is None:
205+
CONFIG['libpath'] = libpath = juliapkg.libjulia()
204206
else:
205207
raise Exception("Both PYTHON_JULIACALL_PROJECT and PYTHON_JULIACALL_EXE must be set together, not only one of them.")
206208
if (libpath is not None) and (exepath is None):

0 commit comments

Comments
 (0)