python-setuptools-rust: Set cargo profile from environment variable 22376/head
authorJeffery To <jeffery.to@gmail.com>
Sun, 8 Oct 2023 12:24:38 +0000 (20:24 +0800)
committerJeffery To <jeffery.to@gmail.com>
Thu, 12 Oct 2023 06:04:00 +0000 (14:04 +0800)
commit6544ab791ec50c7b3dc806772f5af6fc7a57d06a
tree342dc3ea3c39a38156b274ac15c05b0cef2d8343
parent6bded4a1fe35c7d5a5f6940990105bd69bb103ef
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 29ca9797a66f7e4d2ae40d26b91f3d1c2982a744)
lang/python/python-setuptools-rust/Makefile
lang/python/python-setuptools-rust/patches/0001-Allow-profile-to-be-set-by-SETUPTOOLS_RUST_CARGO_PROFILE-env-variable.patch [new file with mode: 0644]
lang/python/python3-host.mk
lang/python/python3-package.mk