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
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- cmake, python
- 领域
- build-system, testing
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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:
- 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.
- 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.
- 主要语言
- Python
- 星标
- 25
- 派生
- 25
- 平均合并
- 4 小时 5 分钟
- 30 天内合并 PR
- 10
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
lanl/PyBNF 的其他 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug tech debt
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
bug minor
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
bug silent-incorrectness
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
-
gh-sync ship audits cards before writing station done, so every ship reports false STATUS findings未关闭harness
难度 2/5 1-3 小时 新手友好度 72/100
mruangutai/harness#2455 ·
维护者通常 1 天内回复
-
stripthink leaves thinking text in place when the chat template opens the think tag in the prompt可能已有人在做 @MaiAditya 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 80/100
维护者通常 1 天内回复
-
xcorr sizes its bin array from the largest observed m/z, so one out-of-range peak kills the run可能已有人在做 @BioGeek 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 75/100
instadeepai/winnow#312 ·