From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- repo/python-flit/python-flit.xibuild | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 repo/python-flit/python-flit.xibuild (limited to 'repo/python-flit/python-flit.xibuild') diff --git a/repo/python-flit/python-flit.xibuild b/repo/python-flit/python-flit.xibuild new file mode 100644 index 0000000..f67c571 --- /dev/null +++ b/repo/python-flit/python-flit.xibuild @@ -0,0 +1,27 @@ +#!/bin/sh + +NAME="python-flit" +DESC="simple packaging tool for simple packages" + +MAKEDEPS="python-installer python-flit-core python-tomli-w" +DEPS="python-tomli-w" + +PKG_VER=3.7.1 +SOURCE="https://files.pythonhosted.org/packages/source/f/flit/flit-$PKG_VER.tar.gz" + + +build() { + # temp hack to not pull in all of py3-build + mkdir dist + python3 - <<-EOF + import flit_core.buildapi as buildapi + name = buildapi.build_wheel('./dist') + print(name) + EOF +} + +package() { + python3 -m installer -d "$PKG_DEST" \ + dist/flit-$PKG_VER-py3-none-any.whl +} + -- cgit v1.2.1