Skip to content

Commit 7581742

Browse files
author
stonebig
committed
detect Julia tool for changelog
1 parent 64865df commit 7581742

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

make.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ def get_tool_path(relpath, checkfunc):
174174
rver = utils.get_r_version(rpath)
175175
installed_tools += [('R', rver)]
176176

177+
juliapath = get_tool_path(self.JULIA_PATH, osp.isdir)
178+
if juliapath is not None:
179+
juliaver = utils.get_julia_version(juliapath)
180+
installed_tools += [('Julia', juliaver)]
181+
177182
tools = []
178183
for name, ver in installed_tools:
179184
metadata = wppm.get_package_metadata('tools.ini', name)

winpython/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,17 @@ def get_gcc_version(path):
237237
"""Return version of the GCC compiler installed in *path*"""
238238
return exec_shell_cmd('gcc --version', path).splitlines()[0].split()[-1]
239239

240+
240241
def get_r_version(path):
241242
"""Return version of the R installed in *path*"""
242243
return exec_shell_cmd('dir ..\README.R*', path).splitlines()[-3].split("-")[-1]
243244

244245

246+
def get_julia_version(path):
247+
"""Return version of the Julia installed in *path*"""
248+
return exec_shell_cmd('julia.exe -v', path).splitlines()[0].split(" ")[-1]
249+
250+
245251
def get_thg_version(path):
246252
"""Return version of TortoiseHg installed in *path*"""
247253
txt = exec_shell_cmd('thg version', path).splitlines()[0]

0 commit comments

Comments
 (0)