Closed whitequark closed 3 months ago
Is there a python target which is "not glibc" and/or "only musl libc"? Or would all linux users need to switch over to a musl-based version?
I'll also note that we haven't yet added musl/alpine releases for Wasmtime itself and this repo pulls from the artifacts produced in Wasmtime itself so that might be a prerequisite here too
It's musllinux
, as per https://peps.python.org/pep-0656/ - this can be a separate build from manylinux
, especially since you already ship different wheels per architecture and system.
Nice! I believe with that there'd be a new addition of musllinux_1_2_x86_64
here. I added building of Wasmtime binaries to https://github.com/bytecodealliance/wasmtime/pull/8668.
@whitequark do you need any other platforms other than x86_64? It'll be significantly more difficult getting other musl-based architectures working since we'd have to build our own toolchain which is generally not an easy thing to architect for CI
do you need any other platforms other than x86_64?
That should cover the vast majority of use cases. I can see someone wanting arm64 for Alpine on Apple M1 eventually, but that's a niche of a niche and I don't think we need to care about this now. Thanks!
@whitequark can you test this release and see if it works for you?
@alexcrichton tested, can verify that it works for me :)
Awesome, thanks! Is this something where you'd like to see that as a 21.0.1 release? Or is waiting until April June 20 for the Wasmtime 22 release ok?
(Do you mean June?)
Oops sorry, yes, I mean June.
I think that's fine--we get folks on musl-based distros occasionally but it's not a lot and you don't need to go through the trouble of making a release. Thanks for offering!
(I guess this issue could be closed once there's a release?)
To reproduce:
The root cause is that the
manylinux
wheels that are currently published are based on glibc, but Alpine is based on musl libc. There is a separatemusllinux
platform tag that can be used in that case.Do you think musl-compatible builds could be added? This would improve compatibility with certain distributions like Alphine Linux, Void Linux, and others focusing on size and speed.