Skip to content

Commit 52b6736

Browse files
committed
Merge pull request #138 from stonebig/master
remove unused code
2 parents 34a37be + 26eb40b commit 52b6736

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

make.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ def build_nsis(srcname, dstname, data):
9595

9696
class WinPythonDistribution(object):
9797
"""WinPython distribution"""
98-
THG_PATH = r'\tools\TortoiseHg\thgw.exe'
99-
WINMERGE_PATH = r'\tools\WinMerge\WinMergeU.exe'
10098
MINGW32_PATH = r'\tools\mingw32\bin'
10199
R_PATH = r'\tools\R\bin'
102100
JULIA_PATH = r'\tools\Julia\bin'
@@ -149,12 +147,6 @@ def get_tool_path(relpath, checkfunc):
149147
path = self.winpydir + relpath
150148
if checkfunc(path):
151149
return path
152-
thgpath = get_tool_path(self.THG_PATH, osp.isfile)
153-
if thgpath is not None:
154-
thgver = utils.get_thg_version(osp.dirname(thgpath))
155-
installed_tools += [('TortoiseHg', thgver)]
156-
if get_tool_path(self.WINMERGE_PATH, osp.isfile) is not None:
157-
installed_tools += [('WinMerge', '2.12.4')]
158150
gccpath = get_tool_path(self.MINGW32_PATH, osp.isdir)
159151
if gccpath is not None:
160152
gccver = utils.get_gcc_version(gccpath)
@@ -253,8 +245,8 @@ def prepath(self):
253245
def postpath(self):
254246
"""Return PATH contents to be append to the environment variable"""
255247
path = []
256-
if osp.isfile(self.winpydir + self.THG_PATH):
257-
path += [r"..\tools\TortoiseHg"]
248+
# if osp.isfile(self.winpydir + self.THG_PATH):
249+
# path += [r"..\tools\TortoiseHg"]
258250
return path
259251

260252
@property
@@ -575,14 +567,6 @@ def _create_launchers(self):
575567
workdir=r'${WINPYDIR}\..\notebooks')
576568
# --notebook-dir=%~dp0
577569
# workdir='${WINPYDIR}\Scripts')
578-
if osp.isfile(self.winpydir + self.THG_PATH):
579-
self.create_launcher('TortoiseHg.exe', 'tortoisehg.ico',
580-
command=r'${WINPYDIR}\..'+self.THG_PATH,
581-
workdir=r'${WINPYDIR}')
582-
if osp.isfile(self.winpydir + self.WINMERGE_PATH):
583-
self.create_launcher('WinMergeU.exe', 'winmerge.ico',
584-
command=r'${WINPYDIR}\..'+self.WINMERGE_PATH,
585-
workdir=r'${WINPYDIR}')
586570

587571
# R console launchers
588572
r_exe = self.R_PATH + r"\i386\R.exe"

0 commit comments

Comments
 (0)