diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-09-29 17:09:46 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-29 17:09:46 +0200 |
| commit | dd6e5ef16dfedb62b8349f1884b9a0e171fbb310 (patch) | |
| tree | c9239dd48a5f1a5af09aefdc4d86733bac5cec9f /wscript | |
| parent | aced73c2861ab9b1b3c29c716bc9fd3214a7beed (diff) | |
Replace distutils.spawn.find_executable with shutil.whichv1.8.111
The former is gone from Python 3.14.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
