Debian Codegraph @

debian/patches/no-distutils

raw
1 Author: Alexandre Rossi <[email protected]>
2 Description: whisper-auto-resize: avoid usage of distutils (deprecated)
3 Forwarded: https://github.com/graphite-project/whisper/pull/343
4
5 --- python-whisper.orig/contrib/whisper-auto-resize.py 2025-02-20 12:41:06.806052141 +0100
6 +++ python-whisper/contrib/whisper-auto-resize.py 2025-02-20 15:22:37.720482756 +0100
7 @@ -5,14 +5,14 @@
8 import shlex
9 from subprocess import call
10 from optparse import OptionParser
11 -from distutils.spawn import find_executable
12 +from shutil import which
13 from os.path import basename
14 from six.moves import input
15
16 # On Debian systems whisper-resize.py is available as whisper-resize
17 -whisperResizeExecutable = find_executable("whisper-resize.py")
18 +whisperResizeExecutable = which("whisper-resize.py")
19 if whisperResizeExecutable is None:
20 - whisperResizeExecutable = find_executable("whisper-resize")
21 + whisperResizeExecutable = which("whisper-resize")
22 if whisperResizeExecutable is None:
23 # Probably will fail later, set it nevertheless
24 whisperResizeExecutable = "whisper-resize.py"