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


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

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

Path csiph.com!news.mixmin.net!weretis.net!feeder8.news.weretis.net!srl.newsdeef.eu!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Louis-Philippe Véronneau <pollo@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 Thu, 18 Sep 2025 23:20:01 +0200
Message-ID <LwucN-go6t-5@gated-at.bofh.it> (permalink)
References <Lwu37-go2O-21@gated-at.bofh.it>
X-Mailbox-Line From debian-python-request@lists.debian.org Thu Sep 18 21:18:01 2025
Old-Return-Path <pollo@debian.org>
X-Amavis-Spam-Status No, score=-108.01 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, 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, 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
MIME-Version 1.0
User-Agent Mozilla Thunderbird
Content-Language en-US
Autocrypt addr=pollo@debian.org; keydata= xjMEYEPdjBYJKwYBBAHaRw8BAQdA5yh8SOHhcvKeX/A4rv0/JTCL8Kgnnwy4/okKh1Htbs3N LExvdWlzLVBoaWxpcHBlIFbDqXJvbm5lYXUgPHBvbGxvQGRlYmlhbi5vcmc+wpYEExYKAD4C GwMFCwkIBwMFFQoJCAsFFgIDAQACHgECF4AWIQT2TWHTIfPLSJFWdT3h5UV8i61BEwUCZb/f iAUJDuIDfAAKCRDh5UV8i61BEzdaAP0cGJp8CpkywzefhdaJjfK5/uAQLRg5Bk6yCWnyR8B4 wQEAxA4C39PJPsosgOVBMdfkzCPhGVynYBnujOyEcksX1w/OOARgQ+DlEgorBgEEAZdVAQUB AQdAgRLbDfS/6GLXd15qI9zHso9UwJQgDbme7pvL1Z9rkG4DAQgHwn4EGBYKACYCGwwWIQT2 TWHTIfPLSJFWdT3h5UV8i61BEwUCZb/fsAUJDuIASgAKCRDh5UV8i61BEwYaAQDhvbQQqmTD F/fdodzfiY45IWYckb9rCvKaVnfP6DOY9QEA/eeaEWmOq2NpOYpBesVjBZCLe8jKv1WPMfLL YOfDIAc=
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 8bit
X-Debian-User pollo
X-Mailing-List <debian-python@lists.debian.org> archive/latest/23258
List-ID <debian-python.lists.debian.org>
List-URL <https://lists.debian.org/debian-python/>
List-Archive https://lists.debian.org/msgid-search/a0c7406d-88ca-461e-989f-4fc8158e4f09@debian.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Thu, 18 Sep 2025 17:17:41 -0400
X-Original-Message-ID <a0c7406d-88ca-461e-989f-4fc8158e4f09@debian.org>
X-Original-References <13846854.uLZWGnKmhe@soren-desktop>
Xref csiph.com linux.debian.maint.python:17076

Show key headers only | View raw


On 2025-09-18 5 h 08 p.m., Soren Stoutner wrote:
> Note:  Sending again with a fixed address for the debian-rust mailing list.  I
> apologize for the duplicate.
> 
> 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.
> 
> 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?
> 

Hello!

I faced similar issues before, maybe this package can be an inspiration:

https://salsa.debian.org/python-team/packages/python-watchfiles

-- 
   ⢀⣴⠾⠻⢶⣦⠀
   ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
   ⢿⡄⠘⠷⠚⠋   pollo@debian.org / veronneau.org
   ⠈⠳⣄

Back to linux.debian.maint.python | Previous | NextPrevious in thread | Next 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