From 6f39dd73f7705b9388f3075783ab3758854657d1 Mon Sep 17 00:00:00 2001 From: fourtysixandtwo Date: Mon, 9 Sep 2024 11:34:08 -0600 Subject: python/python3-httpx: Fix for new hatchling. Signed-off-by: Willy Sudiarto Raharjo --- python/python3-httpx/python3-httpx.SlackBuild | 3 +++ 1 file changed, 3 insertions(+) (limited to 'python/python3-httpx/python3-httpx.SlackBuild') diff --git a/python/python3-httpx/python3-httpx.SlackBuild b/python/python3-httpx/python3-httpx.SlackBuild index 824b559f95..9c54101cb3 100644 --- a/python/python3-httpx/python3-httpx.SlackBuild +++ b/python/python3-httpx/python3-httpx.SlackBuild @@ -66,6 +66,9 @@ 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 {} \+ +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages + #remove upper version requirement from pyproject.toml and PKG-INFO /usr/bin/sed -i 's/,<[0-9].*\",$/\",/' pyproject.toml /usr/bin/sed -i 's/<[0-9].*,//' PKG-INFO -- cgit v1.2.3