Author: Alexandre Rossi <niol@zincube.net>
Description: whisper-auto-resize: avoid usage of distutils (deprecated)
Forwarded: https://github.com/graphite-project/whisper/pull/343

--- python-whisper.orig/contrib/whisper-auto-resize.py	2025-02-20 12:41:06.806052141 +0100
+++ python-whisper/contrib/whisper-auto-resize.py	2025-02-20 15:22:37.720482756 +0100
@@ -5,14 +5,14 @@
 import shlex
 from subprocess import call
 from optparse import OptionParser
-from distutils.spawn import find_executable
+from shutil import which
 from os.path import basename
 from six.moves import input
 
 # On Debian systems whisper-resize.py is available as whisper-resize
-whisperResizeExecutable = find_executable("whisper-resize.py")
+whisperResizeExecutable = which("whisper-resize.py")
 if whisperResizeExecutable is None:
-    whisperResizeExecutable = find_executable("whisper-resize")
+    whisperResizeExecutable = which("whisper-resize")
     if whisperResizeExecutable is None:
         # Probably will fail later, set it nevertheless
         whisperResizeExecutable = "whisper-resize.py"
