-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
cli: add --profile option and MATURIN_PROFILE var #774
Conversation
✔️ Deploy Preview for maturin-guide canceled. 🔨 Explore the source changes: b009978 🔍 Inspect the deploy log: https://app.netlify.com/sites/maturin-guide/deploys/61e52e8e954bd3000768f930 |
I like this idea. Since it's not a commonly used option and it simply forwards to |
Changed to use |
Odd, it seems that Rust 1.58 increased glibc version requirement?
|
Added Hmm, looks like GLIBC wasn't actually increased; there's a note about it here... https://github.com/rust-lang/rust/blob/master/RELEASES.md#compatibility-notes |
Interesting, other PRs are not failing, for example, #779. |
I wonder if a separate
Do you know if there currently is any way to actually use For PyO3/pyo3#2105, could you explain what the |
We certainly shouldn't mirror all of them from |
Yes, this is what I've found out too from further reading. It sounds like
and that loops back to the point of the env var:
... so Now that PyO3 has migrated to
This is a fair point. Note that because maturin passes $ cargo build --release --profile dev
error: conflicting usage of --profile=dev and --release
The `--release` flag is the same as `--profile=release`.
Remove one flag or the other to continue. |
I really like the
Great point, make sense |
Looks like it's only failing when cargo cache misses, this PR also fails. maturin/.github/workflows/test.yml Line 151 in a38b03a
It could be that we are using a Rust toolchain installed on Ubuntu 20.04 in old CentOS docker container. 😅 Should be fixed in #783 |
Just to say I very much would like that too. I want to use pep517 to ease packaging in e.g. Gentoo ebuilds, but the difficulty in passing arguments been a limiting factor. Would want to be able to pass args to |
👍 I think for the moment I'm going to close this PR, as I'm stretched quite thin so don't have the time to rebuild this as |
(Anyone is welcome to claim |
See PyO3/pyo3#2105
This adds
--profile
option, which forwards tocargo --profile
. In addition, theMATURIN_PROFILE
environment variable is added which sets the same value from environment instead of cli. This is helpful when usingpip install
with the PEP 517 backend to override the default ofrelease
build.The env var may not be necessary - it's possible that we can use the PEP 517
config_settings
to take build arguments like--profile
, which would be an alternative to passing with an env var. At the moment, however, this dict is unused.Please let me know how you want this tested and / or documented, and I'll update this PR.