-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Build the wheels for PyPy #18879
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
CI Build the wheels for PyPy #18879
Conversation
@rth Do you mind having a look to the failures in the tests of the |
I think that these tests should be marked as |
Also @ogrisel may have a strong opinion here. |
Yes, looks like there are some CI failures in OpenML for PyPy. Could you please open an issue about it? but otherwise yes I think we can indeed mark them as xfail. We don't need to block wheel building for this, I'll try to have a look. |
I will open an issue to investigate this problem and open a PR marking them as |
|
I don't understand why we would need those to build scikit-learn on PyPy. Nowadays scikit-learn only depend on BLAS via the scipy Cython BLAS API. Maybe this is just a left over? I am pretty sure we don't need the gcc-fortran compiler as we don't have any fortran code in scikit-learn. |
This is the error: numpy.distutils.system_info.NotFoundError: No lapack/blas resources found. if we do not install such packages. Maybe only |
This error is happening when building scipy from source:
We need to find a way to make sure that cibuildwheel can use the pypy wheels for both numpy and scipy. Have a look at the configuration for the pypy build on circle ci to find how we do it there and adjust the env vars and maybe the pyproject,toml accordingly to make sure that we only build against version of numpy and scipy that have public PyPy wheels, ideally on pypi.org. |
Building scipy from source is much too slow. We should really avoid it. |
Thank you @ogrisel! I have not realized that However, |
We should probably not release official scikit-learn wheels for PyPy on pypi.org as long as it's not the case then. Maybe try to see in their issue tracker if they plan to do it in the future? In the mean time we could build our wheels against a non official version of the scipy wheels just for testing. This means that we would need a dedicated |
In fact, @rth was ahead 5 months ago (approximately) MacPython/scipy-wheels#87 😉. |
It's been ~ 1.5 years, and SciPy has not released PyPy wheels. I think it is safe to close this PR for now. Note, with #21645 we now run pypy nightly and can trigger it with a commit tag on PRs. |
What does this implement/fix? Explain your changes.
This PR build the wheels for PyPy using the
cibuildwheel
package.