Skip to content

Commit

Permalink
[bazel] Convert bitstream workspace rule to the new python ext
Browse files Browse the repository at this point in the history
This python script ideally requires the jsonschema package.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Dec 18, 2024
1 parent f374260 commit 8d4b3dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rules/bitstreams.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ bitstreams_repo = repository_rule(
default = 18 * 3600, # Refresh every 18h
),
"python_interpreter": attr.label(
default = "@python3_host//:python",
default = "@ot_py_for_repo//:python",
allow_single_file = True,
doc = "Python interpreter to use.",
),
Expand Down
5 changes: 5 additions & 0 deletions third_party/python/python.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ use_repo(pip, "ot_python_deps")
# List of dependencies that need to used during the loading phase
# by repository rules.
REPO_RULES_PIP_DEPS = [
# Direct dependencies:
"jsonschema", # In rules/scripts/bitstreams_workspace.py
# Transitive dependencies:
"attrs", # For jsonschema
"pyrsistent", # For jsonschema
]

# Ask bazel to use all repositories created by rules_python so we
Expand Down

0 comments on commit 8d4b3dd

Please sign in to comment.