-
Notifications
You must be signed in to change notification settings - Fork 238
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
Optionally build a pure wheel #1022
Conversation
97c2760
to
2f1c6da
Compare
This absolutely cannot go in until #569 is in, and even then, at the very best, I think it could be a undocumented environment only option that disables (or controls?) the check. |
Could we possibly detect the pure wheel immediately (before the repair!), and then error out with a unique error code? Then you could continue if you receive that specific error code? |
So basically |
@henryiii if you think this is not a good idea in the first place, do you still want to have something in place that would be guarded only by an environment variable then? |
No, if there was a unique error, then you could detect it and just continue on if that's actually what you want to do. No need for a secret or hidden setting, or special logic on our end. |
Add a new --pure-wheel command line option to also build pure Python wheel. If not selected, build will fail with a wheel that does not contain platform-specific code once built. Also add a new CIBW_PURE_WHEEL environment variable for this option. Reference: pypa#1021 Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
I am not entirely clear about what you want. Let me reformulate:
I am not sure I get how this design would work, at least without some CLI option or env var unless you are saying that building pure wheels would never go through the tests? |
2f1c6da
to
d9f6db2
Compare
Closing this for the reasons stated in #1021. |
My apologies @pombredanne. But we can't support every user request! There is a small chance that such functionality might find its way into the project as a side-effect of limited-api support, but my advice would be to find a workaround external to cibuildwheel. We could add a custom error code, to address your question above, one way to do this would be to catch NonPlatformWheelError at this location and handle it by printing the message and exiting the program with |
@joerick You do not have to be sorry! I was about to close this anyway as it truly does not make sense to have it here. |
Add a new --pure-wheel command line option to also build pure Python
wheel. If not selected, build will fail with a wheel that does not
contain platform-specific code once built.
Also add a new CIBW_PURE_WHEEL environment variable for this option.
Reference: #1021
Signed-off-by: Philippe Ombredanne pombredanne@nexb.com