-
-
Notifications
You must be signed in to change notification settings - Fork 11k
ENH: building wheels for musl libc #20780
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
Comments
To be considered after the ongoing migration to |
I recently added building musl libc wheels for gmpy2 PyPI package, here: aleaxit/gmpy#318, using |
What really bothers me here, is an apparent bug in setting up the CLIB, and I don't understand what file can't be found, and why.
This was the result of |
That's a really odd build command, you are mixing wheel building with an editable build. Do you get the same for |
yes, same error. |
I don't know then. It certainly works on Alpine. Just use https://alpine-wheels.github.io/index/? |
These wheels are built without an external BLAS/LAPACK. Looking back at my error log, I see three warnings: --- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,7 +1,7 @@
[build-system]
# Minimum requirements for the build system to execute.
requires = [
- "packaging==20.5; platform_machine=='arm64'", # macos M1
+ "packaging==20.5", # macos M1
"setuptools==59.2.0",
"wheel==0.37.0",
"Cython==0.29.24" # pin until PyPy releases v7.3.8 but it's still there. It's apparently harmless though. Also, an import and a distutils warning, below:
|
Ah, great. Well, I guess you're using Alpine for small image size, not optimal performance ....
Those should be harmless. |
We're using Apline merely as a platform to build musl libc wheels, not for actual computing work. |
Duplicate of #20089 which also references a mailing list thread |
Closing in favor of #20089. |
Uh oh!
There was an error while loading. Please reload this page.
Proposed new feature or change:
One notices that the only Linux wheels provided by numpy on PyPI are manylinux* wheels (glibc-based).
Are there plans/problems regarding musl libc-based wheels? Note that a musl-libc Linux distribution, Alpine,
does provide numpy 1.22, see https://pkgs.alpinelinux.org/packages?name=*numpy*&branch=edge - but
as far as I understand, they build numpy calling
python setup.py build
, see https://git.alpinelinux.org/aports/tree/community/py3-numpyfor their build script (they use openblas and gfortran) and a small patch they apply.
A naive attempt to build wheels for numpy we tried didn't work with a rather obscure error, see
https://trac.sagemath.org/ticket/33083#comment:46, or
below: #20780 (comment)
The text was updated successfully, but these errors were encountered: