From 4b54f1164cf0f11e18b0c75637f75e84b14c019d Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 13 Oct 2026 12:46:04 +0200 Subject: python3-platformdirs: update to 4.13.0 Also restore the PYTHONPATH to /opt/python/site-packages so the --no-isolation build finds the hatchling/hatch-vcs/packaging backends on 15.0, where they come from the python3-*-opt packages. --- python3-platformdirs/python3-platformdirs.SlackBuild | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'python3-platformdirs/python3-platformdirs.SlackBuild') diff --git a/python3-platformdirs/python3-platformdirs.SlackBuild b/python3-platformdirs/python3-platformdirs.SlackBuild index 8973300..63e0837 100644 --- a/python3-platformdirs/python3-platformdirs.SlackBuild +++ b/python3-platformdirs/python3-platformdirs.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-platformdirs -VERSION=${VERSION:-4.12.2} +VERSION=${VERSION:-4.13.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,6 +67,13 @@ find -L . \ # platformdirs uses hatch-vcs (setuptools-scm under the hood); provide the # version so it doesn't need git tags. hatch-vcs writes src/platformdirs/version.py # during the build, so no manual fixup is needed. +# +# On 15.0 the build backends (hatchling, hatch-vcs, packaging) come from the +# python3-*-opt packages installed under /opt; point PYTHONPATH there so the +# --no-isolation build finds them. -current ships them in the base and has no +# such path, which is harmless. +PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])') +export PYTHONPATH=/opt/python$PYVER/site-packages SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION python3 -m build --wheel --no-isolation python3 -m installer --destdir "$PKG" dist/*.whl -- cgit v1.2.3