From fce8a57b72af7ea6f8eedfaf599fd85319c04424 Mon Sep 17 00:00:00 2001 From: Christopher Rowley Date: Sun, 31 May 2026 16:14:05 +0100 Subject: [PATCH] use juliapkg.libjulia() for faster init in juliacall --- pyproject.toml | 2 +- pysrc/juliacall/__init__.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e4135304..5dd421af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ classifiers = [ "Operating System :: OS Independent", ] requires-python = ">=3.10, <4" -dependencies = ["juliapkg >=0.1.21, <0.2"] +dependencies = ["juliapkg >=0.1.24, <0.2"] [dependency-groups] dev = [ diff --git a/pysrc/juliacall/__init__.py b/pysrc/juliacall/__init__.py index 33991fae..1466942b 100644 --- a/pysrc/juliacall/__init__.py +++ b/pysrc/juliacall/__init__.py @@ -201,6 +201,8 @@ def args_from_config(config): # Find the Julia executable and project CONFIG['exepath'] = exepath = juliapkg.executable() CONFIG['project'] = project = juliapkg.project() + if libpath is None: + CONFIG['libpath'] = libpath = juliapkg.libjulia() else: raise Exception("Both PYTHON_JULIACALL_PROJECT and PYTHON_JULIACALL_EXE must be set together, not only one of them.") if (libpath is not None) and (exepath is None):