Skip to content

Commit c0dc9dc

Browse files
authored
Fix for #81: Compatibility with new JuliaUp logic (#82)
* Improve logic for finding Julia executable path Refactor executable path retrieval for Julia binary. * Improved to match codestyle Making Ruff happy * Improved to match codestyle Making Ruff happy * Improved to match codestyle * simplify binary path computation --------- Co-authored-by: Christopher Rowley <github.com/cjdoris>
1 parent 89bffa7 commit c0dc9dc

2 files changed

Lines changed: 7 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+
* Compat fix for juliaup 1.19.8.
5+
36
## v0.1.22 (2025-10-08)
47
* Bug fixes.
58

src/juliapkg/find_julia.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ def ju_find_julia_noinstall(compat=None):
192192
continue
193193
ver = Version(ver.major, ver.minor, ver.patch)
194194
if compat is None or ver in compat:
195-
if "Path" in info:
195+
if "BinaryPath" in info:
196+
exe = os.path.abspath(os.path.join(judir, info["BinaryPath"]))
197+
versions.append((exe, ver))
198+
elif "Path" in info:
196199
ext = ".exe" if os.name == "nt" else ""
197200
exe = os.path.abspath(
198201
os.path.join(judir, info["Path"], "bin", "julia" + ext)

0 commit comments

Comments
 (0)