Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3e7854d

Browse files
author
stonebig
committed
remove 'before mingwpy' legacy
1 parent ec14871 commit 3e7854d

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

make.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,6 @@ def get_tool_path(relpath, checkfunc):
144144
if get_tool_path (r'\tools\SciTE.exe', osp.isfile):
145145
installed_tools += [('SciTE', '3.3.7')]
146146

147-
gccpath = get_tool_path(self.MINGW32_PATH, osp.isdir)
148-
if gccpath is not None:
149-
gccver = utils.get_gcc_version(gccpath)
150-
installed_tools += [('MinGW32', gccver)]
151-
152147
rpath = get_tool_path(self.R_PATH, osp.isdir)
153148
if rpath is not None:
154149
rver = utils.get_r_version(rpath)

winpython/utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,6 @@ def exec_shell_cmd(args, path):
232232
return decode_fs_string(process.stdout.read())
233233

234234

235-
def get_gcc_version(path):
236-
"""Return version of the GCC compiler installed in *path*"""
237-
return exec_shell_cmd('gcc --version', path).splitlines()[0].split()[-1]
238-
239-
240235
def get_r_version(path):
241236
"""Return version of the R installed in *path*"""
242237
return exec_shell_cmd('dir ..\README.R*', path).splitlines()[-3].split("-")[-1]
@@ -611,9 +606,6 @@ def do_script(this_script, python_exe=None, copy_to=None,
611606

612607

613608
if __name__ == '__main__':
614-
gcc = get_gcc_version(osp.join(BASE_DIR, 'tools.win32', 'mingw32', 'bin'))
615-
print(("gcc version: %r" % gcc))
616-
617609
thg = get_thg_version(osp.join(BASE_DIR, 'tools', 'tortoisehg'))
618610
print(("thg version: %r" % thg))
619611

0 commit comments

Comments
 (0)