forked from bazel-contrib/rules_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinternal_setup.bzl
More file actions
23 lines (17 loc) · 783 Bytes
/
internal_setup.bzl
File metadata and controls
23 lines (17 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Setup for rules_python tests and tools."""
load("@build_bazel_integration_testing//tools:repositories.bzl", "bazel_binaries")
# Requirements for building our piptool.
load(
"@piptool_deps//:requirements.bzl",
_piptool_install = "pip_install",
)
load("//:version.bzl", "SUPPORTED_BAZEL_VERSIONS")
load("//python/pip_install:repositories.bzl", "pip_install_dependencies")
def rules_python_internal_setup():
"""Setup for rules_python tests and tools."""
# Requirements for building our piptool.
_piptool_install()
# Because we don't use the pip_install rule, we have to call this to fetch its deps
pip_install_dependencies()
# Depend on the Bazel binaries for running bazel-in-bazel tests
bazel_binaries(versions = SUPPORTED_BAZEL_VERSIONS)