Packaging a Python/Rust hybrid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I am in the process of figuring out packaging of a Python/Rust hybrid and have a few questions. Specifically, my work is on updating the matrix-synapse package[0]. Synapse is originally a Python package, but the developers started rewriting some critical parts in Rust and used Pyo3 as glue. After a lot of experimentation, I hacked together a first working copr build[1], but I don’t know how to get it into a clean shape or how that even looks like exactly.

 * Should I move the Rust parts into a subpackage? What are the
   conventions then (e.g. for naming)?
 * What is the best way to install a Rust-generated so-file as Python
   module into the Python sitearch dir?
 * Currently, I bypass python-setuptools-rust completely and went with
   Fedora’s Rust macros. Is that the preferred path?
 * Are there some useful macros/macro options I can utilize, and where
   is manual work required instead?

Thank you
Kai

[0] https://src.fedoraproject.org/rpms/matrix-synapse
[1] https://copr.fedorainfracloud.org/coprs/v02460/matrix-synapse
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux