Skip to content

Commit c6c7866

Browse files
author
stonebig
committed
fix tools changelog creation
1 parent 4d19ee3 commit c6c7866

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

make.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def __init__(self, build_number, release_level, target, wheeldir,
130130
@property
131131
def package_index_wiki(self):
132132
"""Return Package Index page in Wiki format"""
133-
installed_tools = [('SciTE', '3.3.7')]
133+
installed_tools = []
134134

135135
def get_tool_path(relpath, checkfunc):
136136
if self.simulation:
@@ -142,6 +142,10 @@ def get_tool_path(relpath, checkfunc):
142142
path = self.winpydir + relpath
143143
if checkfunc(path):
144144
return path
145+
146+
if get_tool_path (r'\tools\SciTE.exe', osp.isfile):
147+
installed_tools += [('SciTE', '3.3.7')]
148+
145149
gccpath = get_tool_path(self.MINGW32_PATH, osp.isdir)
146150
if gccpath is not None:
147151
gccver = utils.get_gcc_version(gccpath)
@@ -157,6 +161,12 @@ def get_tool_path(relpath, checkfunc):
157161
juliaver = utils.get_julia_version(juliapath)
158162
installed_tools += [('Julia', juliaver)]
159163

164+
pandocexe = get_tool_path (r'\tools\pandoc.exe', osp.isfile)
165+
if pandocexe is not None:
166+
pandocver = utils.get_pandoc_version(osp.dirname(pandocexe))
167+
installed_tools += [('Pandoc', pandocver)]
168+
169+
160170
tools = []
161171
for name, ver in installed_tools:
162172
metadata = wppm.get_package_metadata('tools.ini', name)

winpython/data/tools.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ url=http://julialang.org/
1010
description=C/C++ and Fortran compilers (Mingwpy static toolchain version)
1111
url=https://github.com/numpy/numpy/wiki/Mingw-static-toolchain
1212

13+
[pandoc]
14+
description=a universal document converter
15+
url=http://pandoc.org/
16+
1317
[r]
1418
description=The R Project for Statistical Computing
1519
url=http://www.r-project.org

winpython/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ def get_thg_version(path):
254254
if match is not None:
255255
return match.groups()[0]
256256

257+
def get_pandoc_version(path):
258+
"""Return version of the Pandoc executable in *path*"""
259+
return exec_shell_cmd('pandoc -v', path).splitlines()[0].split(" ")[-1]
257260

258261
def python_query(cmd, path):
259262
"""Execute Python command using the Python interpreter located in *path*"""

0 commit comments

Comments
 (0)