From 802ed172da424f9d969c2c2c53196424618feb8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Mon, 24 Mar 2025 12:54:47 +0100 Subject: [PATCH] dev-python/uv-build: Use DISTUTILS_UPSTREAM_PEP517 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/uv-build/uv-build-0.6.11.ebuild | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/dev-python/uv-build/uv-build-0.6.11.ebuild b/dev-python/uv-build/uv-build-0.6.11.ebuild index a93405a17200f..39fada98c1d0d 100644 --- a/dev-python/uv-build/uv-build-0.6.11.ebuild +++ b/dev-python/uv-build/uv-build-0.6.11.ebuild @@ -4,6 +4,9 @@ EAPI=8 DISTUTILS_USE_PEP517=hatchling +# maturin compiles uv-build executable for every impl, we do not want +# that, so we hack hatchling into installing the Python module instead. +DISTUTILS_UPSTREAM_PEP517=maturin PYTHON_COMPAT=( pypy3 pypy3_11 python3_{10..13} ) inherit distutils-r1 pypi @@ -31,14 +34,7 @@ src_prepare() { distutils-r1_src_prepare - # replace the upstream build system since we don't want maturin - # to recompile uv again - sed -i -e '/^\[build-system\]$/,$d' pyproject.toml || die cat >> pyproject.toml <<-EOF || die - [build-system] - requires = ["hatchling"] - build-backend = "hatchling.build" - [tool.hatch.build.targets.wheel] packages = ["python/uv_build"] EOF