summaryrefslogtreecommitdiff
path: root/repo/python-flit/python-flit.xibuild
blob: f67c571d69575dad615cb89700c783666efa3ac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
}