The uv project is working on a new PEP517 backend that may negatively impact Python packaging for distros

Michał Górny <[email protected]> Sat, 21 Dec 2024 16:12:21 +0100
Newsgroups dev.linux.lists.distributions
Organization Gentoo
Message-ID <[email protected]>
--=-OWa2x6YANOU5+z9bYDB/
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello, everyone.

I've learned that the uv project is currently working on starting to
provide their own PEP 517 build backend [1].  I am significantly worried
that it will negatively impact our ability to package Python software in
Gentoo, and I think other distributions that do not use wheels will also
be impacted.

Just to make things clear, I'm not opposed to uv itself at all.  I think
it's a great packaging tool, and I use it when I can.  However, this has
a flip side that once it starts providing its own build backend, it will
become immensely popular and people will be using it for pure Python
projects.  This will mean that -- unless we resort to some kind of
downstream patching or workarounds -- building wheels for these packages
will also require installing uv, and therefore the portability of pure
Python packages using the backend will be severely limited.

The way I see it, if the backend starts being officially recommended,
things are going to become much more painful for us.  If anything,
Gentoo will probably have to resort to downstream patching the packages
to use a pure Python backend instead to retain compatibility with all
the targets we support.

[1] https://github.com/astral-sh/uv/issues/3957

--=20
Best regards,
Micha=C5=82 G=C3=B3rny


--=-OWa2x6YANOU5+z9bYDB/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----

iQFGBAABCgAwFiEEx2qEUJQJjSjMiybFY5ra4jKeJA4FAmdm2tUSHG1nb3JueUBn
ZW50b28ub3JnAAoJEGOa2uIyniQOoBEH/jajzC5+ImOSa/poGK3LQ2ftWCf1SdnM
oG3kiSnSru2TJly8Pg50G5vueXIehUB09catZFl6F5q46PCWEJKjb5oa/SbJTUld
l7OgVYLnZtl+qIQN0nyUslpOrDOqCUaKQdtUeJLYtJy17VkseJhQWMrJURLenjyX
s+gphJ0OlNAumiCessyuCd37qiEooUj4V+/QOrxL3+TweanbLe2FDi1jSAy5gHsO
TH7YBgkbcaRrGZOGQ38yyLLik7i4HiIehKgHSpIVg1Y0YDGqwM+uvMWFK6lKiSfi
cnEH3kfSDdirm9GN3iER3jVh/VMA12E6C9hl3iTDxpwfzYcKamu2WQg=
=iDs7
-----END PGP SIGNATURE-----

--=-OWa2x6YANOU5+z9bYDB/--