Skip to content

Commit 0e8fa2a

Browse files
author
Christopher Doris
committed
ensure correct version of julia gets installed
1 parent b6c514a commit 0e8fa2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

juliacall/init.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
break
7878
# If no such version, install it
7979
if exepath is None:
80+
print("Installing Julia version {} to {!r}".format(exever, jlbin))
8081
os.makedirs(jldownload, exist_ok=True)
8182
d = os.getcwd()
8283
p = os.environ.get("PATH")
@@ -86,7 +87,7 @@
8687
else:
8788
os.environ["PATH"] += os.pathsep + jlbin
8889
os.chdir(jldownload)
89-
jli.install_julia(confirm=True, install_dir=jlinstall, symlink_dir=jlbin)
90+
jli.install_julia(version=exever, confirm=True, install_dir=jlinstall, symlink_dir=jlbin)
9091
finally:
9192
if p is None:
9293
del os.environ["PATH"]

0 commit comments

Comments
 (0)