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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to