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.SlackBuild7
1 files changed, 6 insertions, 1 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