From 0514d7d0ac0aa243a92105de8f28de69fa4091a5 Mon Sep 17 00:00:00 2001 From: Isaac Yu Date: Sun, 28 Sep 2025 01:11:57 -0700 Subject: python/python3-grpcio: Update for 1.75.1 (+use newer Cython) Signed-off-by: Willy Sudiarto Raharjo --- python/python3-grpcio/python3-grpcio.SlackBuild | 7 ++++++- python/python3-grpcio/python3-grpcio.info | 8 ++++---- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'python/python3-grpcio') diff --git a/python/python3-grpcio/python3-grpcio.SlackBuild b/python/python3-grpcio/python3-grpcio.SlackBuild index d5d29eb7ee..8b1fea4044 100644 --- a/python/python3-grpcio/python3-grpcio.SlackBuild +++ b/python/python3-grpcio/python3-grpcio.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-grpcio -VERSION=${VERSION:-1.74.1} +VERSION=${VERSION:-1.75.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -75,6 +75,11 @@ export GRPC_PYTHON_BUILD_SYSTEM_RE2=1 export GRPC_PYTHON_BUILD_SYSTEM_ABSL=1 export GRPC_BUILD_WITH_BORING_SSL_ASM=0 +# Cython 3 is required for building python3-grpcio >= 1.75.1 +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH="/opt/python$PYVER/site-packages:/opt/cython/python$PYVER/site-packages" +export PATH="/opt/cython/bin:$PATH" + # Build python3-grcpio GRPC_PYTHON_CFLAGS="-fvisibility=hidden -fno-wrapv -fno-exceptions $(pkg-config --cflags protobuf) -std=c++17" \ python3 setup.py install --root=$PKG diff --git a/python/python3-grpcio/python3-grpcio.info b/python/python3-grpcio/python3-grpcio.info index b21d48b24b..402c6007f1 100644 --- a/python/python3-grpcio/python3-grpcio.info +++ b/python/python3-grpcio/python3-grpcio.info @@ -1,10 +1,10 @@ PRGNAM="python3-grpcio" -VERSION="1.74.1" +VERSION="1.75.1" HOMEPAGE="https://grpc.io/" -DOWNLOAD="https://github.com/grpc/grpc/archive/v1.74.1/grpc-1.74.1.tar.gz" -MD5SUM="395dd050e369ff70896732377060a327" +DOWNLOAD="https://github.com/grpc/grpc/archive/v1.75.1/grpc-1.75.1.tar.gz" +MD5SUM="d3154a2dd983ab10784dd0699f4d42a2" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="protobuf3 re2" +REQUIRES="protobuf3 python3-cython-opt re2" MAINTAINER="Isaac Yu" EMAIL="isaacyu@protonmail.com" -- cgit v1.2.3