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
Feature Request: flag to skip build if there is not a numpy wheel available #1701
Comments
I wonder if a lot of people have the same issue. It's kinda advanced but I wonder if a neat syntax for this would be something like |
I like this idea! I think this would be quite a common use-case. For my project pypop which depends on But as the status
Running the full workflow just to check whether a new wheel is error-prone, and dependent on when I think to look at pypi. It would be much better to have it be dynamic, as suggested above with a new I'm not sure how easy this would be, but it would also be nice if it could be integrated into the parallel-style of cibuildwheel on github action as shown in https://iscinumpy.dev/post/cibuildwheel-2-10-0/. in other words, it would be useful if the |
Description
A great many C extensions depend upon numpy.
If numpy does not have a binary wheel targeting that platform, version, and architecture, then almost always it is going to be harder for the user to compile numpy from source than the dependent library.
It would be great to add a environmental flag to avoid building wheels for when there is not already a numpy wheel available.
This could be accomplished by either trying to do the build, and bailing out if pip finds there is no wheel available. Alternately, we could use the pypi API to look at all the numpy wheels available in the most recent version of numpy and deduce what to skip.
Almost all the the things i'm skipping in CIBW_SKIP are because of missing numpy wheels.
The text was updated successfully, but these errors were encountered: