]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
support/mkbundle: switch from distutils to setuptools
authorBernd Kuhls <bernd@kuhls.net>
Sat, 5 Aug 2023 10:21:05 +0000 (12:21 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Fri, 11 Aug 2023 23:34:48 +0000 (01:34 +0200)
Fixes build error with python-3.12:

Traceback (most recent call last):
  File "support/mkbundle", line 48, in <module>
    import distutils.spawn
ModuleNotFoundError: No module named 'distutils'

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
support/mkbundle

index 170ef9a915120c7124043a097d5534f5669df53b..43d503b904c00d9bc0dac3a7294bf2fca1f01286 100755 (executable)
@@ -45,10 +45,10 @@ if opts.deps:
 # PNGquant
 pngquant_bin = '/usr/bin/pngquant'
 if opts.pngquant:
-  import distutils.spawn
+  from shutil import which
   import subprocess
   import time
-  distutils.spawn.find_executable('pngquant')
+  which('pngquant')
 
 # Build hierarchy
 root  = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '..'))