From 8af768019b0bafc4c2a929161912fd2bbc3ca76b Mon Sep 17 00:00:00 2001 From: OscarL Date: Wed, 8 Jan 2025 07:15:13 -0300 Subject: [PATCH] grpc: switch tests to Python 3.10. (Untested) (#11608) --- net-libs/grpc/grpc-1.53.0.recipe | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/net-libs/grpc/grpc-1.53.0.recipe b/net-libs/grpc/grpc-1.53.0.recipe index 8ed115e71..4fa809f54 100644 --- a/net-libs/grpc/grpc-1.53.0.recipe +++ b/net-libs/grpc/grpc-1.53.0.recipe @@ -24,6 +24,10 @@ libVersionCompat="$libVersion compat >= ${libVersion%%.*}" libCppVersion=$portVersion libCppVersionCompat="$libCppVersion compat >= ${libCppVersion%.*}" +# Used for TESTS() only: +pythonVersion=3.10 +pythonPackage=python${pythonVersion//.} + PROVIDES=" grpc$secondaryArchSuffix = $portVersion cmd:grpc_cpp_plugin @@ -109,9 +113,10 @@ BUILD_PREREQUIRES=" cmd:ninja cmd:pkg_config$secondaryArchSuffix " + TEST_REQUIRES=" - cmd:python3 - six_python39 + cmd:python$pythonVersion + six_$pythonPackage " BUILD() @@ -181,5 +186,5 @@ INSTALL() TEST() { - python3 tools/run_tests/run_tests.py -l c++ + python$pythonVersion tools/run_tests/run_tests.py -l c++ }