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,022 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cmake, python

調査の方向性

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 の本文から書いたものです。

説明

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.

主要言語
Python
スター
25
フォーク
25
平均マージ
4時間 5分
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lanl/PyBNF のほかの issue

lanl/PyBNF の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。