aboutsummaryrefslogtreecommitdiff
path: root/python/python3-evdev/python3-evdev.SlackBuild
diff options
context:
space:
mode:
authorJeremy Hansen <jebrhansen+github@gmail.com>2025-02-14 11:58:32 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-02-15 16:48:53 +0700
commit2a22cbaa73899b7c95ad48026d005acd7153b997 (patch)
tree58609380099b01ffd7984aa8c40e015fd4786a90 /python/python3-evdev/python3-evdev.SlackBuild
parent4f2721e82bf43183469d78a5b406ba4433a938eb (diff)
python/python3-evdev: Version bump to 1.9.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-evdev/python3-evdev.SlackBuild')
-rw-r--r--python/python3-evdev/python3-evdev.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/python/python3-evdev/python3-evdev.SlackBuild b/python/python3-evdev/python3-evdev.SlackBuild
index d243b7f2f8..b39ecbcf98 100644
--- a/python/python3-evdev/python3-evdev.SlackBuild
+++ b/python/python3-evdev/python3-evdev.SlackBuild
@@ -29,7 +29,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-evdev
-VERSION=${VERSION:-1.8.0}
+VERSION=${VERSION:-1.9.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -74,7 +74,16 @@ find -L . -perm 660 -exec chmod 644 {} \;
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages/
-python3 setup.py install --root=$PKG
+# Add unused section to avoid ERROR message from setuptools_scm
+# Make it an if statement just in case upstream decides to update
+# it and I don't notice.
+if ! grep -qF "[tool.setuptools_scm]" pyproject.toml; then
+ echo "[tool.setuptools_scm]" >> pyproject.toml
+fi
+export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
+
+python3 -m build --wheel --no-isolation
+python3 -m installer --destdir "$PKG" dist/*.whl
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true