From dd6e5ef16dfedb62b8349f1884b9a0e171fbb310 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 29 Sep 2024 17:09:46 +0200 Subject: Replace distutils.spawn.find_executable with shutil.which The former is gone from Python 3.14. --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index a45a72a4..f8d51859 100644 --- a/wscript +++ b/wscript @@ -35,7 +35,7 @@ import subprocess import os import sys import shlex -import distutils.spawn +import shutil from waflib import Logs, Context APPNAME = 'libdcp' @@ -129,7 +129,7 @@ def configure(conf): # ImageMagick / GraphicsMagick if (not conf.options.disable_examples) and (not conf.options.disable_dumpimage): - if distutils.spawn.find_executable('Magick++-config'): + if shutil.which('Magick++-config'): conf.check_cfg(package='', path='Magick++-config', args='--cppflags --cxxflags --libs', uselib_store='MAGICK', mandatory=True, msg='Checking for ImageMagick/GraphicsMagick') else: image = conf.check_cfg(package='ImageMagick++', args='--cflags --libs', uselib_store='MAGICK', mandatory=False) -- cgit v1.2.3