summaryrefslogtreecommitdiff
path: root/repo/python-pyparsing/python-pyparsing.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /repo/python-pyparsing/python-pyparsing.xibuild
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'repo/python-pyparsing/python-pyparsing.xibuild')
-rw-r--r--repo/python-pyparsing/python-pyparsing.xibuild14
1 files changed, 10 insertions, 4 deletions
diff --git a/repo/python-pyparsing/python-pyparsing.xibuild b/repo/python-pyparsing/python-pyparsing.xibuild
index a2772b3..beb20ba 100644
--- a/repo/python-pyparsing/python-pyparsing.xibuild
+++ b/repo/python-pyparsing/python-pyparsing.xibuild
@@ -1,6 +1,6 @@
#!/bin/sh
-MAKEDEPS="python "
+MAKEDEPS="python python-gpep517 python-flit"
DEPS=""
PKG_VER=3.0.9
@@ -8,9 +8,15 @@ SOURCE=https://github.com/pyparsing/pyparsing/archive/pyparsing_$PKG_VER.tar.gz
DESC="General parsing module for Python"
build() {
- python setup.py build
+ mkdir -p dist
+ local backend="$(python3 -m gpep517 get-backend)"
+ python3 -m gpep517 build-wheel \
+ --wheel-dir dist \
+ --backend "$backend" \
+ --output-fd 1
}
-package () {
- python setup.py install --root="$PKG_DEST" --optimize=1
+package() {
+ python3 -m installer -d "$PKG_DEST" \
+ dist/pyparsing-$PKG_VER-py3-none-any.whl
}