Commit Graph

2 Commits

Author SHA1 Message Date
Jeffery To
6544ab791e python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in
https://github.com/PyO3/setuptools-rust/pull/364), to read the profile
to pass to cargo from an environment variable.

This also updates the Python include files to set the environment
variable based on values from rust-values.mk.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit 29ca9797a6)
2023-10-12 14:04:00 +08:00
Jeffery To
f78e60fa8d python-setuptools-rust: Add new host-only package
From the README:

setuptools-rust is a plugin for setuptools to build Rust Python
extensions implemented with PyO3 or rust-cpython.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit f467f47f0c)
2023-10-02 19:15:02 +08:00