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

Abierto
#1,022 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cmake, python

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
25
Forks
25
Merge medio
4 h 5 min
PR fusionados (30 d)
10

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de lanl/PyBNF

Todos los issues de lanl/PyBNF

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.