build-common

Shared build system code (usually as a git submodule)
Log | Files | Refs | README | LICENSE

commit 884e13fe65b584f63d4cf92348fab1136af4bd69
parent 001f5dd081fc8729ff8def90c4a1c3f93eb8689a
Author: Florian Dold <florian@dold.me>
Date:   Thu, 17 Oct 2024 09:40:27 +0200

use shutil instead of distutils

The latter is not installed everywhere and find_executable is
deprecated.

Diffstat:
Mtalerbuildconfig.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/talerbuildconfig.py b/talerbuildconfig.py @@ -31,8 +31,8 @@ import argparse import os import sys import shlex +import shutil import logging -from distutils.spawn import find_executable import subprocess from dataclasses import dataclass import semver @@ -179,7 +179,7 @@ class BuildConfig: def existence(name): - return find_executable(name) is not None + return shutil.which(name) is not None class Option(Plugin):