diff options
Diffstat (limited to 'python3-platformdirs/python3-platformdirs.SlackBuild')
| -rw-r--r-- | python3-platformdirs/python3-platformdirs.SlackBuild | 9 |
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 |
