Skip to content

Commit 553bccc

Browse files
authored
Add support for dynamic musl Python distributions on x86-64 Linux (#12121)
Following the upstream release and #12120, removes gating preventing installation of the managed musl Python versions. Of note - The filtering of musl Python distributions has moved from the Rust runtime to the metadata fetcher - The filtering is now conditional on the PBS release date, removing all old static musl distributions - We could support the `+static` musl downloads in the future; right now, they are deprioritized when selecting a variant - I added test to CI which uses Alpine and installs numpy
1 parent f3fb1c5 commit 553bccc

File tree

7 files changed

+350
-10940
lines changed

7 files changed

+350
-10940
lines changed

.github/workflows/ci.yml

+30
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,36 @@ jobs:
737737
eval "$(./uv generate-shell-completion bash)"
738738
eval "$(./uvx --generate-shell-completion bash)"
739739
740+
smoke-test-linux-musl:
741+
timeout-minutes: 10
742+
needs: build-binary-linux-musl
743+
name: "check system | alpine"
744+
runs-on: ubuntu-latest
745+
container: alpine:latest
746+
steps:
747+
- uses: actions/checkout@v4
748+
749+
- name: "Download binary"
750+
uses: actions/download-artifact@v4
751+
with:
752+
name: uv-linux-musl-${{ github.sha }}
753+
754+
- name: "Prepare binary"
755+
run: |
756+
chmod +x ./uv
757+
chmod +x ./uvx
758+
759+
- name: "Smoke test"
760+
run: |
761+
# Overwrite the 3.13.0 pin from the project, there are not functional
762+
# musl distributions for it
763+
./uv python pin 3.13
764+
./uv venv -v
765+
./uv pip install ruff -v
766+
./uvx -v ruff --version
767+
./uv pip install numpy -v
768+
./uv run python -c "import numpy; print(numpy.__version__)"
769+
740770
smoke-test-macos:
741771
timeout-minutes: 10
742772
needs: build-binary-macos-x86_64

0 commit comments

Comments
 (0)