-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[drake_bazel_download] Upgrade MODULE.bazel
Upgrade rules_cc to latest 0.0.x release 0.0.17. Upgrade rules_python to latest release 0.40.0; this requires some additional toolchain shenanigans.
- Loading branch information
1 parent
bd3ec3a
commit e2bb50f
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,24 @@ | ||
# SPDX-License-Identifier: MIT-0 | ||
|
||
# This is an empty BUILD file, to ensure that this project's root directory is | ||
# a Bazel package. | ||
# We must opt-out of the py_exec_tools_toolchain, otherwise rules_python will | ||
# download a random copy from the internet that doesn't work correctly in CI. | ||
# | ||
# The py_exec_tools_toolchain is used to byte-compile python sources during | ||
# the build step (vs the first time they are run) for improved performance. | ||
# We don't need that optimization in this project. | ||
|
||
load( | ||
"@rules_python//python:py_exec_tools_toolchain.bzl", | ||
"py_exec_tools_toolchain", | ||
) | ||
|
||
py_exec_tools_toolchain( | ||
name = "python_no_exec_tools", | ||
exec_interpreter = "@rules_python//python:none", | ||
) | ||
|
||
toolchain( | ||
name = "python_no_exec_tools_toolchain", | ||
toolchain = ":python_no_exec_tools", | ||
toolchain_type = "@rules_python//python:exec_tools_toolchain_type", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters