Skip to content

Bazel builds should be hermetic, but they're not #802

Description

@mhucka

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: devopsInvolves build systems, Make files, Bazel files, continuous integration, and/or other DevOps topicsa: healthInvolves general matters of project configuration, health, maintenance, and similar concernscontributors welcomeHelp with this would be appreciated

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions