commit: 802ed172da424f9d969c2c2c53196424618feb8a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 24 11:54:47 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Apr 2 07:06:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802ed172
dev-python/uv-build: Use DISTUTILS_UPSTREAM_PEP517
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
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 a93405a17200..39fada98c1d0 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