From: Bernd Kuhls Date: Sat, 5 Aug 2023 10:21:05 +0000 (+0200) Subject: support/mkbundle: switch from distutils to setuptools X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec56067f4f6cb3fae5a03f0fb492c45413d095bb;p=thirdparty%2Ftvheadend.git support/mkbundle: switch from distutils to setuptools Fixes build error with python-3.12: Traceback (most recent call last): File "support/mkbundle", line 48, in import distutils.spawn ModuleNotFoundError: No module named 'distutils' Signed-off-by: Bernd Kuhls --- diff --git a/support/mkbundle b/support/mkbundle index 170ef9a91..43d503b90 100755 --- a/support/mkbundle +++ b/support/mkbundle @@ -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]), '..'))