actions / actions/setup-python

Add pre-compiled Python binaries for Debian in versions manifest

Đang mở
#1,294 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

feature request
Ngôn ngữ chính
TypeScript
Star
2.2k
Fork
739
Merge trung bình
6 ngày 18 giờ
Pull request đã merge (30 ngày)
1

Mô tả

Description:
Add pre-compiled Python binaries for Debian (12 and 13) to the versions-manifest.json. Currently the manifest only includes Ubuntu (16.04–24.04), causing actions/setup-python to fail on Debian-based self-hosted runners with:

Error: The version '3.x' with architecture 'x64' was not found for Debian 13.

Requested additions:

Distro Version Architectures
Debian 12 (Bookworm) x64, arm64
Debian 13 (Trixie) x64, arm64

Justification:
Debian is one of the most widely deployed Linux distributions for self-hosted CI runners and server infrastructure. Ubuntu itself is derived from Debian and shares the same glibc/libc6 ABI, meaning the same build pipeline used to produce Ubuntu binaries should work for Debian with minimal changes. Without manifest entries for Debian, setup-python performs a platform detection check via /etc/os-release, finds no matching entry, and errors out — even though an Ubuntu 24.04 binary would run correctly on Debian 13. Users are forced to either switch their runner OS to Ubuntu or remove setup-python entirely and rely on the system Python, both of which are unnecessary workarounds given the binary compatibility.

Are you willing to submit a PR?

Yes, open to contributing if the maintainers can provide guidance on the build matrix configuration for Debian targets.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu với các mục Ubuntu trong versions-manifest.json và cấu hình build matrix cho các binary target hiện có. Theo dõi cách actions/setup-python đối chiếu /etc/os-release với các mục trong manifest, sau đó xác minh phạm vi hỗ trợ Debian 12 và 13 cho x64 và arm64, cũng như việc phân giải phiên bản thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
github-actions, python
Lĩnh vực
build-system, ci-cd
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
55/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.