summaryrefslogtreecommitdiff
path: root/repo/python-pyparsing
diff options
context:
space:
mode:
Diffstat (limited to 'repo/python-pyparsing')
-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
}