Publish wheels for musllinux
zmanji opened this issue · 1 comments
zmanji commented
On Alpine linux running:
pip install 'ziglang==0.10.0'
Fails with:
ERROR: Could not find a version that satisfies the requirement ziglang==0.10.0 (from versions: 0.0.0)
ERROR: No matching distribution found for ziglang==0.10.0
I think this is because the publishing script only releases manylinux wheels and not musllinux wheels
Lines 115 to 122 in 8d37e95
Since the linux- binaries published on the zig website are statically linked I think changing
'linux-x86_64': 'manylinux_2_12_x86_64.manylinux2010_x86_64',
to
'linux-x86_64': 'manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64',
to the publishing script should work.
I tested this out locally by downloading ziglang-0.10.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl and renaming it to ziglang-0.10.0-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.musllinux_1_1_x86_64.whl and then running python3 -m ziglang worked fine.
Publishing this wheel means running pip install maturin[zig] on Alpine linux will work as well.
whitequark commented