From f9a0b97f5610c8866d6cea4310fca5c9de252b21 Mon Sep 17 00:00:00 2001 From: icp Date: Fri, 19 May 2023 01:37:37 +0530 Subject: [PATCH] python3-flit_core: clean up bootstrapping --- srcpkgs/python3-flit_core/template | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/srcpkgs/python3-flit_core/template b/srcpkgs/python3-flit_core/template index 0165c5096c1f..36ea6cbf3abc 100644 --- a/srcpkgs/python3-flit_core/template +++ b/srcpkgs/python3-flit_core/template @@ -1,39 +1,31 @@ # Template file for 'python3-flit_core' pkgname=python3-flit_core version=3.9.0 -revision=1 -build_wrksrc="flit-${version}/flit_core" +revision=2 # This package is required by python3-build and python3-installer, used by the # python3-pep517 style; so using that style here would create a cycle -build_style=python3-module hostmakedepends="python3" depends="python3" checkdepends="python3-pytest python3-testpath $depends" short_desc="Simplified packaging of Python modules - PEP 517 build backend" maintainer="Andrew J. Hesford " license="BSD-3-Clause" -homepage="https://flit.readthedocs.io" -changelog="https://flit.readthedocs.io/en/latest/history.html" -# Pull the installer package directly to bootstrap the pep517 toolchain -_installer_version="0.5.1" -distfiles="${PYPI_SITE}/f/flit/flit-${version}.tar.gz - ${PYPI_SITE}/i/installer/installer-${_installer_version}.tar.gz -" -checksum="d75edf5eb324da20d53570a6a6f87f51e606eee8384925cd66a90611140844c7 - f970995ec2bb815e2fdaf7977b26b2091e1e386f0f42eafd5ac811953dc5d445" +homepage="https://flit.pypa.io/" +changelog="https://flit.pypa.io/en/stable/history.html" +distfiles="${PYPI_SITE}/f/flit_core/flit_core-${version}.tar.gz" +checksum=72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba do_build() { python3 -m flit_core.wheel } -do_install() { - local pypath="../../installer-${_installer_version}/src" - if [ -n "${PYTHONPATH}" ]; then - pypath="${pypath}:${PYTHONPATH}" - fi +do_check() { + python3 -m pytest flit_core/tests +} - PYTHONPATH="${pypath}" python3 -m installer --destdir "${DESTDIR}" \ +do_install() { + python3 bootstrap_install.py --install-root "${DESTDIR}" \ "dist/flit_core-${version}-py3-none-any.whl" - vlicense ../LICENSE + vlicense LICENSE }