diff options
author | Erich Ritz <erich.public+gitlab@protonmail.com> | 2024-03-01 23:02:28 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-03-02 09:19:47 +0700 |
commit | 41603d289ae3c2a6c4adf9daac76060473adb3c3 (patch) | |
tree | cf09e8b8f992099f239a788f28cf2418c0aff449 | |
parent | 6d3f2da9560fbe5d3ee58135b95b4c032ada1f6b (diff) |
python/python3-json5: Add missing dep.
Switch to pyproject.toml build method.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python3-json5/python3-json5.SlackBuild | 7 | ||||
-rw-r--r-- | python/python3-json5/python3-json5.info | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/python/python3-json5/python3-json5.SlackBuild b/python/python3-json5/python3-json5.SlackBuild index f96f3f56f5f6a..2e64b188421f3 100644 --- a/python/python3-json5/python3-json5.SlackBuild +++ b/python/python3-json5/python3-json5.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-json5 VERSION=${VERSION:-0.9.17} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -65,7 +65,10 @@ 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 {} \; -python3 setup.py install --root=$PKG +export PYTHONPATH=/opt/python3.9/site-packages/ + +python3 -m build --no-isolation +python3 -m installer -d "$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 diff --git a/python/python3-json5/python3-json5.info b/python/python3-json5/python3-json5.info index dbbd0ea932b51..a5b6e0341f055 100644 --- a/python/python3-json5/python3-json5.info +++ b/python/python3-json5/python3-json5.info @@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/dpranke/pyjson5/archive/v0.9.17/pyjson5-0.9.17.tar. MD5SUM="b5a9f9560ce24f70d890a5ae32fa9c0f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="" +REQUIRES="python3-setuptools-opt" MAINTAINER="Erich Ritz" EMAIL="erich.public@protonmail.com" |