Commit 55d5f10e06 for openssl.org
commit 55d5f10e065a3d09f76b47afaf46c3d56faf986c
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date: Thu Sep 3 15:52:01 2026 +0200
test/recipes/95-test_external_pyca_data/cryptography.sh: use python3 command
Some distributions do not provide "python" command. Change it
to python3 (which is hopefully more universally available) and provide
an ability to supply a different python command name, just in case.
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Jakub Zelenka <jakub.zelenka@openssl.foundation>
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Merge-date: Mon Sep 7 18:23:53 2026
Merged-from: https://github.com/openssl/openssl/pull/32668
diff --git a/test/recipes/95-test_external_pyca_data/cryptography.sh b/test/recipes/95-test_external_pyca_data/cryptography.sh
index 18d93f5394..ef9fceb842 100755
--- a/test/recipes/95-test_external_pyca_data/cryptography.sh
+++ b/test/recipes/95-test_external_pyca_data/cryptography.sh
@@ -19,6 +19,9 @@ O_BINC=`pwd`/$BLDTOP/include
O_SINC=`pwd`/$SRCTOP/include
O_LIB=`pwd`/$BLDTOP
+: "${PYTHON_CMD=python3}"
+: "${VENV_CMD=${PYTHON_CMD} -m venv}"
+
export PATH=$O_EXE:$PATH
export LD_LIBRARY_PATH=$O_LIB:$LD_LIBRARY_PATH
@@ -30,6 +33,8 @@ echo "Testing OpenSSL using Python Cryptography:"
echo " CWD: $PWD"
echo " SRCTOP: $SRCTOP"
echo " BLDTOP: $BLDTOP"
+echo " Python command: $PYTHON_CMD"
+echo " venv command: $VENV_CMD"
echo " OpenSSL version: $OPENSSL_VERSION"
echo "------------------------------------------------------------------"
@@ -37,7 +42,7 @@ cd $SRCTOP
# Create a python virtual env and activate
rm -rf venv-cryptography
-python -m venv venv-cryptography
+${VENV_CMD} venv-cryptography
. ./venv-cryptography/bin/activate
# Upgrade pip to always have latest
pip install -U pip