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++ }