From 08a015100e306fcc23d44a2c80fe13714c67a31d Mon Sep 17 00:00:00 2001 From: native-api Date: Sat, 30 May 2026 12:47:16 +0300 Subject: [PATCH] python_build: Make `verify_python` verify `pythonX.Y' suffix (#3459) * Fix erroneous use in tests that didn't show until now --- plugins/python-build/bin/python-build | 6 ++++-- plugins/python-build/test/pyenv_ext.bats | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index f937ec5a..43b7909b 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -2101,10 +2101,12 @@ build_package_symlink_version_suffix() { verify_python() { build_package_symlink_version_suffix + + local python_bin="${PYTHON_BIN%/*}/python${1:?}" - if [ ! -x "${PYTHON_BIN}" ]; then + if [ ! -x "${python_bin}" ]; then { colorize 1 "ERROR" - echo ": invalid Python executable: ${PYTHON_BIN}" + echo ": invalid Python executable: ${python_bin}" echo echo "The python-build could not find proper executable of Python after successful build." echo "Please open an issue for future improvements." diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index 1134f163..aa0bbcb4 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -233,7 +233,7 @@ OUT chmod +x "${INSTALL_ROOT}/bin/python3.4-config" TMPDIR="$BATS_TEST_TMPDIR" run_inline_definition <