aboutsummaryrefslogtreecommitdiff
path: root/python/python3-grpcio
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu@protonmail.com>2025-09-28 01:11:57 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-10-03 06:51:19 +0700
commit0514d7d0ac0aa243a92105de8f28de69fa4091a5 (patch)
tree36b5d3d1d496aa85c402cf113844dcf462771175 /python/python3-grpcio
parent6338e5c685cc69ee2243ab5032d5572d51e69540 (diff)
python/python3-grpcio: Update for 1.75.1 (+use newer Cython)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-grpcio')
-rw-r--r--python/python3-grpcio/python3-grpcio.SlackBuild7
-rw-r--r--python/python3-grpcio/python3-grpcio.info8
2 files changed, 10 insertions, 5 deletions
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"