Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #17082

Re: Requesting guidance on the best way to package Python packages that include Rust code (specifically uv_build)

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Soren Stoutner <soren@debian.org>
Newsgroups linux.debian.maint.python
Subject Re: Requesting guidance on the best way to package Python packages that include Rust code (specifically uv_build)
Date Sun, 21 Sep 2025 04:30:01 +0200
Message-ID <LxhZT-gWwM-1@gated-at.bofh.it> (permalink)
References <Lwu37-go2O-21@gated-at.bofh.it> <LwHD3-gwZT-21@gated-at.bofh.it>
X-Original-To debian-python@lists.debian.org, debian-rust@lists.debian.org, Manuel Guerra <ar.manuelguerra@gmail.com>
X-Mailbox-Line From debian-python-request@lists.debian.org Sun Sep 21 02:26:01 2025
Old-Return-Path <soren@debian.org>
X-Amavis-Spam-Status No, score=-114.51 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no
Organization Debian
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEWIg4F7bGiws7ReTkyy kYoXFRrd6/4yMA0PAAACaklEQVQ4y22TwXabMBBFJaPuNZGSNZZp1uhM6BpkJeu4VFk3bsL/f0Lf CHC6qHyOgbl68zTDoIwaVfh3tUopTUGpbFToDiFnY9IY2oMAZYMiS4R9SfbSXepSS5EcFAa/muIU aRj8mkoUqrEraFzhYegBmqig0LyCIyM8DAwPlpBqmJVYaD2UeWZ3abVjsqKIojg+hY4omsyIcNSi qIBM6jJWOveS6kvBeVvHJ+VYzJUW88RmA12UiBx3HEcUMRuzIZI6tBQovTrPclNB3AuUXoXvs0XY C3B2baJpW4Dn2ZpVMInCirkxoyhM1qpK5nFrO65QvCrCqql2DyPgvm94iMQz5/PmISuEotxQGMD5 M5G1N9CjXJ5HQH96BZG2xx6AzejYZccxT4Re3Zr4bPKkCcGcz5Or3dVEABkAUY/znnVcQVVkrXVU vomoEJFe7x4nQuaZmZELL6qnXZGIB5YV/Q2IogtSmyNybEcBX2+QCLOAQYm+gmoORUrYzV7dc6R2 T1WPm45oVEQqsjtoIovHyTmcyxMhVVxTqapomZyLlAmTKC9AmjgamXXGZo+epNrXO3wGGiPRHbKL FnMy2RRgRb1gzFXXGjhICp8wqaTtdtyQH6nWTfkatJvJJoUCbOjSC7wR9/naEVognxrOFdLh7Ugx QpA/0QT4pRV0+u2dqsXD5y9EBDjVAJS3ZZLxmZblgmsU8x7mBeCKg48Py7WU2IiH1epbEbC8K9Ms y0cpcySVUcdQVrBY+rEsv+XpYgFKXT8B3v2yATxv8fKK2EfC358tsIMLYqfD401xA0j1EY4P/wWf IbhlOWyBv4OQsywBM8MAAAAAAElFTkSuQmCC
MIME-Version 1.0
Content-Type multipart/signed; boundary="nextPart10724608.nUPlyArG6x"; micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Debian-User soren
X-Mailing-List <debian-python@lists.debian.org> archive/latest/23266
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/8580191.T7Z3S40VBb@soren-desktop
Approved robomod@news.nic.it
Lines 92
Sender robomod@news.nic.it
X-Original-Date Sat, 20 Sep 2025 19:25:13 -0700
X-Original-Message-ID <8580191.T7Z3S40VBb@soren-desktop>
X-Original-References <13846854.uLZWGnKmhe@soren-desktop> <aM0_U6d9YDKesK7m@debian.org>
Xref csiph.com linux.debian.maint.python:17082

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Ananthu and Louis-Philippe, thank you.  Both of your responses were very 
helpful.

On Friday, September 19, 2025 4:32:35 AM Mountain Standard Time Ananthu C V 
wrote:
> Hi Soren,
> 
> On Thu, Sep 18, 2025 at 02:08:47PM -0700, Soren Stoutner wrote:
> > There are a couple of Python packages I maintain which have introduced new
> > dependencies written in Python but containing Rust code.  In particular,
> > this
> > email is regarding uv_build, which is a Python build system that is being
> > adopted by a number of upstream projects whose packages I maintain.
> > 
> > Manuel Guerra has been looking into how difficult it is to package 
uv_build.
> 
> I will talk more about this below.
> 
> > https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1115616
> > 
> > By default, it wants to download Rust code at build-time based on a
> > Cargo.toml.  I assume this is not unique nor the first time this can come 
up
> > with a Python package.  My question is, what is the canonical way for
> > handing
> > such dependencies?
> 
> The rust cargo wrapper is currently the way we usually go with, you
> can refer to [0]. pollo already shared an example, some other ones are
> python-orjson, pendulum etc. This is all under the impression of your
> package not using uv_build itself as build backend, or you will have to 
either
> switch it over to another build backend or wait until uv_build is packaged.
> 
> Coming back to the packaging of uv_build, there is already ongoing
> effor for packaging uv. But it is not easy as the dependency is tree
> is quite huge. I'd expect most of it to be packaged though, but
> there's a huge pain with uv itself. uv has an insane amount of
> internal crates, none of which are in crates.io, which means the
> typical rust team workflow can't be applied to them at least. A simple
> 'find crates/ -maxdepth 1 -name uv-* -type d | wc -l' in the uv repo
> will give you 61 as result, which is 60 other internal crates than uv
> itself. Now uv_build does not require all of that, but working on this
> will require a lot of things to be figured out first; such as what all
> binaries need to be shipped, how to handle the build, etc. So it is
> quite complicated and probably will take some time to get sorted out.
> 
> [0] https://rust-team.pages.debian.net/book/process-workspace.html


-- 
Soren Stoutner
soren@debian.org

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Find similar


Thread

  Requesting guidance on the best way to package Python packages that include  Rust code (specifically uv_build) Soren Stoutner <soren@debian.org> - 2025-09-18 23:10 +0200
  Re: Requesting guidance on the best way to package Python packages  that include Rust code (specifically uv_build) Louis-Philippe Véronneau <pollo@debian.org> - 2025-09-18 23:20 +0200
  Re: Requesting guidance on the best way to package Python packages  that include Rust code (specifically uv_build) Ananthu C V <weepingclown@debian.org> - 2025-09-19 13:40 +0200
      Re: Requesting guidance on the best way to package Python packages that  include Rust code (specifically uv_build) Soren Stoutner <soren@debian.org> - 2025-09-21 04:30 +0200

csiph-web