Bazel builds should be hermetic, but they're not

Offen
#802 4 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

@mhucka arbeitet bereits daran.

Seit 07.10.2026.

  • #1094 von @kris524 — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

a: devops a: health contributors welcome
Describe the issue

The Bazel configuration files do no install the Python requirements, which means it's up to the user to do pip install requirements.txt and dev-requirements.txt prior to running Bazel commands. If they don't, they may get an unobvious error message such as this:

ERROR: Analysis of target '//tests:simulator_testfixture' failed; build aborted: Problem getting numpy include path.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'numpy'

We need to make qsim's Bazel files use rules_python and install the Python requirements.

What version of qsim are you using?

0.22.0.dev0

How can the issue be reproduced?

No response

Vorherrschende Sprache
C++
Sterne
702
Forks
219
Ø Merge
1 T. 2 Std.
Gemergte PRs (30 T.)
8

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus quantumlib/qsim

Alle Issues in quantumlib/qsim

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.