Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Branding patches cause issues with certain wheels

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
build-system

Hướng nghiên cứu

Bắt đầu với recipe/brand_python.py và kiểm tra cả bản vá banner CPython lẫn bản vá xác thực platform.py. Tái hiện sự không khớp bằng cách sử dụng ngữ cảnh wheel xeus-python được liên kết tĩnh được mô tả trong issue, sau đó xác minh rằng phương án xử lý được chọn xử lý được cả banner Python mang thương hiệu conda-forge và banner Python gốc.

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

Mô tả

This recipe patches the CPython source code to include conda-forge branding in the interpreter banner, namely | packaged by conda-forge |. However, since this banner is validated in platform.py (to prevent mismatches between the Python runtime and the python home in use), the platform.py is also patched for this validation to pass. Both patches are done in brand-python.py.

Now, I have the following issue with this: we are working on a PyPI wheel for the xeus-python jupyter kernel, for which we have a functional conda package, and which embeds Python. The conda package simply links with libpython.so and all is fine, but for the wheel, since we generally can't rely on Python distributions providing a libpython.so shared object, our PyPI manylinux wheel is statically linked with libpython.a. This causes the banner to not be the one from conda-forge an to cause a mismatch with conda-forge's patched validation regex.

To solve this issue, we would need to either renounce to the branding in the banner, or make the new regex slightly more flexible to also accept the original banner from the unpatched python interpreter.

cc @mingwandroid @jjhelmus @johanmabille.

Ngôn ngữ chính
Shell
Star
47
Fork
112
Merge trung bình
22 giờ 18 phút
Pull request đã merge (30 ngày)
14

Chuẩn bị môi trường

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.

Issue khác của conda-forge/python-feedstock

Tất cả issue của conda-forge/python-feedstock

Issue tương tự

Thêm issue về Shell/Bash

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.