PyBNF lists Python 3.14 as supported, but bngsim has no 3.14 wheels, so pip install pybnf there compiles bngsim from source, and no CI job tests that install

Đang mở
#1,022 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, python
Lĩnh vực
build-system, testing

Hướng nghiên cứu

Read pyproject.toml, docs/installation.rst, and .github/workflows/tests.yml, then compare the Python 3.14 install behavior with the existing CI job that sets PYBNF_NO_BNGSIM=1. Check the linked bngsim wheel limitation and decide which of the two compatibility approaches fits the project. Done means the Python support claim, installation guidance, and CI comment agree with tested installation behavior.

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

Mô tả

bug documentation

PyBNF requires bngsim, its default simulation engine. bngsim 0.17.0 publishes wheels for CPython 3.10 to 3.13 only (lanl/bngsim#1491). PyBNF's pyproject.toml lists Python 3.14 in its classifiers, and docs/installation.rst says any Python 3.12 or higher will do.

So on Python 3.14, pip install pybnf downloads the bngsim source distribution and tries to compile it. That needs a C++17 compiler, CMake 3.20 or later, and Ninja. Most users will not have them, and the installation guide does not mention them.

Reproduction. This resolves the dependencies without building or installing anything:

echo "pybnf==1.8.2" | uv pip compile - --python-version 3.14 --no-build

It fails with "bngsim==0.17.0 has no usable wheels". The same command with --python-version 3.13 resolves normally.

The CI matrix in .github/workflows/tests.yml does have a Python 3.14 job, but it leaves bngsim out and sets PYBNF_NO_BNGSIM=1. The comment there says this job guards "a bare pip install pybnf on a machine with no wheel". That is not what such a machine gets. pip does not skip a required dependency that has no wheel. It builds it from source, and if the build fails the whole install fails. The job is still useful as a check of the code paths that work without bngsim, but the install a 3.14 user actually gets is never tested.

Two ways to fix it:

  1. Until lanl/bngsim#1491 ships 3.14 wheels, remove the 3.14 classifier and say in the installation guide that Python 3.14 needs a compiler toolchain to build bngsim.
  2. Keep the 3.14 claim, and add a 3.14 job that builds bngsim from source and runs the tests, so the claim is checked.

Either way, the comment in tests.yml should be corrected.

Ngôn ngữ chính
Python
Star
25
Fork
25
Merge trung bình
4 giờ 5 phút
Pull request đã merge (30 ngày)
10

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 lanl/PyBNF

Tất cả issue của lanl/PyBNF

Issue tương tự

Thêm issue về Python

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.