From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/python-pyparsing/python-pyparsing.xibuild | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'repo/python-pyparsing') 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 } -- cgit v1.2.1