X Tutup
Skip to content

Commit 4d84b2b

Browse files
committed
remove thg and ffmpeg legacy
1 parent b34f055 commit 4d84b2b

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

make.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,6 @@ def get_tool_path(relpath, checkfunc):
270270
pandocver = utils.get_pandoc_version(osp.dirname(pandocexe))
271271
installed_tools += [('Pandoc', pandocver)]
272272

273-
ffmpegexe = get_tool_path (r'\t\ffmpeg.exe', osp.isfile)
274-
if ffmpegexe is not None:
275-
ffmpegver = utils.get_ffmpeg_version(osp.dirname(ffmpegexe))
276-
installed_tools += [('ffmpeg', ffmpegver)]
277273

278274
tools = []
279275
for name, ver in installed_tools:
@@ -755,14 +751,6 @@ def _create_batch_scripts_initial(self):
755751
set JULIA_PKGDIR=%WINPYDIRBASE%\settings\.julia
756752
:julia_bad
757753
758-
rem ******************
759-
rem handle ffmpeg if included
760-
rem ******************
761-
if not exist "%WINPYDIRBASE%\t\ffmpeg.exe" goto ffmpeg_bad
762-
set IMAGEIO_FFMPEG_EXE=%WINPYDIRBASE%\t\ffmpeg.exe
763-
764-
:ffmpeg_bad
765-
766754
767755
rem ******************
768756
rem handle PySide2 if included
@@ -879,13 +867,6 @@ def _create_batch_scripts_initial(self):
879867
$env:JULIA_PKGDIR = "$env:WINPYDIR\..\settings\.julia"
880868
}
881869
882-
#####################
883-
### handle ffmpeg if included
884-
#####################
885-
if (Test-Path "$env:WINPYDIR\..\t\ffmpeg.exe") {
886-
$env:IMAGEIO_FFMPEG_EXE = "%WINPYDIRBASE%\t\ffmpeg.exe"
887-
}
888-
889870
#####################
890871
### handle PySide2 if included
891872
#####################
@@ -1429,7 +1410,6 @@ def make(self, remove_existing=True, requirements=None, my_winpydir=None): #, f
14291410
if not self.simulation:
14301411
self._create_batch_scripts_initial()
14311412
self._create_batch_scripts() # which set mingwpy as compiler
1432-
self._run_complement_batch_scripts("run_required_first.bat")
14331413
# launchers at the beginning
14341414
self._create_launchers()
14351415

winpython/utils.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,20 +236,11 @@ def get_npmjs_version(path):
236236
"""Return version of the Nodejs installed in *path*"""
237237
return exec_shell_cmd('npm -v', path).splitlines()[0]
238238

239-
def get_thg_version(path):
240-
"""Return version of TortoiseHg installed in *path*"""
241-
txt = exec_shell_cmd('thg version', path).splitlines()[0]
242-
match = re.match('TortoiseHg Dialogs \(version ([0-9\.]*)\)', txt)
243-
if match is not None:
244-
return match.groups()[0]
245239

246240
def get_pandoc_version(path):
247241
"""Return version of the Pandoc executable in *path*"""
248242
return exec_shell_cmd('pandoc -v', path).splitlines()[0].split(" ")[-1]
249243

250-
def get_ffmpeg_version(path):
251-
"""Return version of the Pandoc executable in *path*"""
252-
return exec_shell_cmd('ffmpeg -version', path).splitlines()[0].split(" ")[2]
253244

254245
def python_query(cmd, path):
255246
"""Execute Python command using the Python interpreter located in *path*"""
@@ -601,8 +592,6 @@ def do_script(this_script, python_exe=None, copy_to=None,
601592

602593

603594
if __name__ == '__main__':
604-
thg = get_thg_version(osp.join(BASE_DIR, 't', 'tortoisehg'))
605-
print(("thg version: %r" % thg))
606595

607596
print_box("Test")
608597
dname = sys.prefix

0 commit comments

Comments
 (0)
X Tutup