aboutsummaryrefslogtreecommitdiff
path: root/python/python3-grpcio/python3-grpcio.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'python/python3-grpcio/python3-grpcio.SlackBuild')
-rw-r--r--python/python3-grpcio/python3-grpcio.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/python/python3-grpcio/python3-grpcio.SlackBuild b/python/python3-grpcio/python3-grpcio.SlackBuild
index 08bdea6415..8b1fea4044 100644
--- a/python/python3-grpcio/python3-grpcio.SlackBuild
+++ b/python/python3-grpcio/python3-grpcio.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for python3-grpcio
-# Copyright 2024 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2024-2025 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-grpcio
-VERSION=${VERSION:-1.71.0}
-BUILD=${BUILD:-3}
+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