python/python3-geventhttpclient: Fix build.

Was not buildling correctly with old setuptools.  Silent FTB error.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
fourtysixandtwo 2024-05-10 05:24:03 -06:00 committed by Willy Sudiarto Raharjo
parent b6484fab2b
commit c9ccd3dc81
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 6 additions and 2 deletions

View File

@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-geventhttpclient
SRCNAM=geventhttpclient
VERSION=${VERSION:-2.3.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -77,6 +77,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# needs newer setuptools to fix "UNKNOWN" and no module generated
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl

View File

@ -5,6 +5,6 @@ DOWNLOAD="https://files.pythonhosted.org/packages/8c/14/d4eddae757de44985718a9e3
MD5SUM="a0a235b7579e9b5575e6f1db260f7599"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gevent llhttp python3-wheel python3-build"
REQUIRES="gevent llhttp python3-setuptools-opt"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"