-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow profile to be set by SETUPTOOLS_RUST_CARGO_PROFILE env variable #364
Conversation
I understand the desire for this (and have wanted it myself) but would like this to be called something other than |
This would be better but I don't have time to wade into cargo internals right now 😅 I couldn't find any mention of this functionality in their issues/PRs, that is slightly surprising. Also it turns out Would |
77a0d61
to
b10cab4
Compare
I have changed the variable name to FYI I'm the Python maintainer at the OpenWrt packages feed; I'm working on improving the building of Rust extensions for the Python packages there. It would be much easier to patch setuptools-rust to accept this environment variable than to patch I'm not a Rust person so getting this isn't cargo isn't my first choice/priority right now. |
This adds a patch (submitted upstream in PyO3/setuptools-rust#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>
This adds a patch (submitted upstream in PyO3/setuptools-rust#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>
This adds a patch (submitted upstream in PyO3/setuptools-rust#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>
This adds a patch (submitted upstream in PyO3/setuptools-rust#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 29ca979)
Sorry for the delayed reply. Understood, in which case to help you move forward let's accept the environment variable here for now. Can you please add a CHANGELOG entry, and then I'll get this merged and released asap. |
b10cab4
to
db6ae47
Compare
Thanks 🙏 I've updated the CHANGELOG. |
This allows the profile to be set dynamically, without having to edit pyproject.toml/setup.py.
db6ae47
to
8489360
Compare
Reformatted with black. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Will ship now 👍
This adds a patch (submitted upstream in PyO3/setuptools-rust#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>
This allows the profile to be set dynamically, without having to edit pyproject.toml/setup.py.