aboutsummaryrefslogtreecommitdiffstats
path: root/python3-platformdirs/python3-platformdirs.SlackBuild
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-13 12:46:04 +0200
committerDanilo M. <danix@danix.xyz>2026-10-13 12:46:04 +0200
commit4b54f1164cf0f11e18b0c75637f75e84b14c019d (patch)
tree521fae8c7febde61d71dc15c18bcd78beb953e7b /python3-platformdirs/python3-platformdirs.SlackBuild
parent9b484912827418686bf9aaa8c8aa8f4840707bd2 (diff)
downloadmy-slackbuilds-4b54f1164cf0f11e18b0c75637f75e84b14c019d.tar.gz
my-slackbuilds-4b54f1164cf0f11e18b0c75637f75e84b14c019d.zip
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.
Diffstat (limited to 'python3-platformdirs/python3-platformdirs.SlackBuild')
-rw-r--r--python3-platformdirs/python3-platformdirs.SlackBuild9
1 files changed, 8 insertions, 1 deletions
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