summaryrefslogtreecommitdiff
path: root/repo/python-poetry-core/python-poetry-core.xibuild
blob: 4f32131d94e8ea5c1fbda15044b3355db87cb8e4 (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
#!/bin/sh

NAME="python-poetry-core"
DESC="PEP 517 build backend implementation for Poetry"

MAKEDEPS="python-build python-installer"

PKG_VER=1.4.0
SOURCE="https://github.com/python-poetry/poetry-core/archive/$PKG_VER.tar.gz"

build() {
	GIT_DIR="$PWD" python3 -m build --wheel
}


package() {
	python3 -m installer -d "$PKG_DEST" \
		dist/poetry_core-$PKG_VER-py3-none-any.whl

	# remove vendored versions of installed modules
	local sitedir=$(python3 -c "import site; print(site.getsitepackages()[0])")
	rm -r "$PKG_DEST/$sitedir"/poetry/core/_vendor
}