diff options
Diffstat (limited to 'python/python3-grpcio/python3-grpcio.SlackBuild')
| -rw-r--r-- | python/python3-grpcio/python3-grpcio.SlackBuild | 14 | 
1 files changed, 10 insertions, 4 deletions
diff --git a/python/python3-grpcio/python3-grpcio.SlackBuild b/python/python3-grpcio/python3-grpcio.SlackBuild index 44653bb8b9..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 @@ -16,7 +16,7 @@  #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO  #  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,  #  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;  +#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;  #  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,  #  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR  #  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF @@ -25,7 +25,7 @@  cd $(dirname $0) ; CWD=$(pwd)  PRGNAM=python3-grpcio -VERSION=${VERSION:-1.67.1} +VERSION=${VERSION:-1.75.1}  BUILD=${BUILD:-1}  TAG=${TAG:-_SBo}  PKGTYPE=${PKGTYPE:-tgz} @@ -57,6 +57,7 @@ cd $TMP  rm -rf $SRCNAM-$VERSION  tar xvf $CWD/$SRCNAM-$VERSION.tar.gz  cd $SRCNAM-$VERSION +  chown -R root:root .  find -L . \   \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -74,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 @@ -87,7 +93,7 @@ sed -r -i \      tools/distrib/python/grpcio_tools/protoc_lib_deps.py  ln -s ../../../.. tools/distrib/python/grpcio_tools/grpc_root -# Build python3-grcpio_tools +# Build python3-grcpio-tools  cd tools/distrib/python/grpcio_tools  GRPC_PYTHON_CFLAGS="-fno-wrapv -frtti $(pkg-config --cflags protobuf)" \    GRPC_PYTHON_LDFLAGS="$(pkg-config --libs protobuf) -lprotoc" \  | 
