Bug 2442991 - Build python bindings for rust-tokenizers
Summary: Build python bindings for rust-tokenizers
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rust-tokenizers
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alexander Lent
QA Contact:
URL:
Whiteboard:
: 2442992 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-02-26 12:45 UTC by Peter Robinson
Modified: 2026-05-31 19:28 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-05-31 19:28:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Peter Robinson 2026-02-26 12:45:35 UTC
The rust-tokenizers package has upstream python bindings [1], they are using in a bunch of python based AI tooling.

[1] https://github.com/huggingface/tokenizers/blob/main/bindings/python/pyproject.toml

Comment 1 Peter Robinson 2026-02-26 12:50:16 UTC
*** Bug 2442992 has been marked as a duplicate of this bug. ***

Comment 2 Alexander Lent 2026-02-26 13:05:46 UTC
The bindings are available in Fedora 44 and rawhide (45).

There is a missing dep in f42/f43; I'm going to try to discuss it with the maintainer of that dependency. 
I think the issue is that the bindings don't fall under the existing rust exception to the u the updates policy - it might be worth officially taking the issue to FESCo.

Comment 3 Alexander Lent 2026-02-26 13:06:13 UTC
https://src.fedoraproject.org/rpms/python-tokenizers

Comment 4 Alexander Lent 2026-02-26 13:06:26 UTC
https://src.fedoraproject.org/rpms/python-tokenizers

Comment 5 Alexander Lent 2026-02-26 13:06:32 UTC
https://src.fedoraproject.org/rpms/python-tokenizers

Comment 6 Peter Robinson 2026-02-26 13:33:44 UTC
(In reply to Alexander Lent from comment #2)
> The bindings are available in Fedora 44 and rawhide (45).

Ah, I missed them, while I have a bunch of HW already on F44, there's a bunch of the AI stuff that still needs py3.13 so for that I"m currently using f42.

> There is a missing dep in f42/f43; I'm going to try to discuss it with the
> maintainer of that dependency.

Thanks

> I think the issue is that the bindings don't fall under the existing rust
> exception to the u the updates policy - it might be worth officially taking
> the issue to FESCo.

Can you provide details of that dep?

Thanks!

Comment 7 Alexander Lent 2026-04-09 03:44:19 UTC
OK, the dep is rust-pyo3-async-runtime{,-macros} maintained by gordonmessmer.
I'll bring this up in the AI/ML SIG meeting tomorrow, see what folks think.

I have a PR ready if they agree in order to make this work on 42/43. Thanks for asking about this!

Comment 8 Alexander Lent 2026-04-09 03:44:34 UTC
See proposed fix in https://src.fedoraproject.org/rpms/python-tokenizers/pull-request/1

Comment 9 Peter Robinson 2026-04-09 09:08:32 UTC
> I have a PR ready if they agree in order to make this work on 42/43. Thanks
> for asking about this!

f42 doesn't particularly make sense, it'll be EOL soon, f44+ would be fine for me.

Comment 10 Alexander Lent 2026-05-16 08:55:53 UTC
Proposed updates, please test if able:
https://bodhi.fedoraproject.org/updates/FEDORA-2026-79b1202266
https://bodhi.fedoraproject.org/updates/FEDORA-2026-88aa2e7442

I'll probably leave 0.22.2 as the final (and only) version on Fedora 42, and upgrade to 0.23.1 later on Fedora 43+. Let me know if that works for you.

Comment 11 Peter Robinson 2026-05-18 20:17:38 UTC
> I'll probably leave 0.22.2 as the final (and only) version on Fedora 42, and
> upgrade to 0.23.1 later on Fedora 43+. Let me know if that works for you.

Yup, fine by me

Comment 12 Alexander Lent 2026-05-31 19:28:34 UTC
Done.


Note You need to log in before you can comment on or make changes to this bug.