|
1 | 1 | module(name = "hedron_compile_commands") |
2 | 2 |
|
3 | | -use_extension("//:workspace_setup.bzl", "hedron_compile_commands_extension") |
4 | | -use_extension("//:workspace_setup_transitive.bzl", "hedron_compile_commands_extension") |
5 | | -use_extension("//:workspace_setup_transitive_transitive.bzl", "hedron_compile_commands_extension") |
6 | | -use_extension("//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_extension") |
| 3 | +p = use_extension("//:workspace_setup.bzl", "hedron_compile_commands_extension") |
| 4 | +pt = use_extension("//:workspace_setup_transitive.bzl", "hedron_compile_commands_extension") |
| 5 | +ptt = use_extension("//:workspace_setup_transitive_transitive.bzl", "hedron_compile_commands_extension") |
| 6 | +pttt = use_extension("//:workspace_setup_transitive_transitive_transitive.bzl", "hedron_compile_commands_extension") |
7 | 7 |
|
8 | | -# While we're supporting the WORKSPACE, we need to load rules_python through its WORKSPACE mechanism because the (currently unstable) bzlmod APIs differ just enough that loads would fail if you tried to support both at the same time. |
9 | | -# But this is how you'd load rules_python from bzlmod: |
10 | | -# bazel_dep(name = "rules_python", version = "0.27.1") |
11 | | -# python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
12 | | -# python.toolchain( |
13 | | -# python_version = "3.11", |
14 | | -# ) |
15 | | -# use_repo(python, "python_versions") |
16 | | -# pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
17 | | -# pip.parse( |
18 | | -# hub_name = "hedron_compile_commands_pip", |
19 | | -# # Available versions are listed in @rules_python//python:versions.bzl. |
20 | | -# python_version = "3.11", |
21 | | -# requirements_lock = "//:requirements.txt", |
22 | | -# ) |
23 | | -# use_repo(pip, "hedron_compile_commands_pip") |
| 8 | + |
| 9 | +bazel_dep(name = "rules_python", version = "0.27.1") |
| 10 | +python = use_extension("@rules_python//python/extensions:python.bzl", "python") |
| 11 | +python.toolchain( |
| 12 | + python_version = "3.11", |
| 13 | +) |
| 14 | +use_repo(python, "python_3_11") |
| 15 | +pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 16 | +pip.parse( |
| 17 | + hub_name = "hedron_compile_commands_pip", |
| 18 | + # Available versions are listed in @rules_python//python:versions.bzl. |
| 19 | + python_version = "3.11", |
| 20 | + requirements_lock = "//:requirements.txt", |
| 21 | +) |
| 22 | +use_repo(pip, "hedron_compile_commands_pip") |
0 commit comments