-
-
Notifications
You must be signed in to change notification settings - Fork 681
Expand file tree
/
Copy pathWORKSPACE
More file actions
43 lines (35 loc) · 1.02 KB
/
WORKSPACE
File metadata and controls
43 lines (35 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
workspace(name = "external_native_py_binary")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load(
"@bazel_tools//tools/build_defs/repo:local.bzl",
"local_repository",
"new_local_repository",
)
http_archive(
name = "rules_shell",
sha256 = "3e114424a5c7e4fd43e0133cc6ecdfe54e45ae8affa14fadd839f29901424043",
strip_prefix = "rules_shell-0.4.0",
url = "https://github.com/bazelbuild/rules_shell/releases/download/v0.4.0/rules_shell-v0.4.0.tar.gz",
)
local_repository(
name = "rules_python",
path = "../../..",
)
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
py_repositories()
python_register_toolchains(
name = "python_3_11",
python_version = "3.11",
)
new_local_repository(
name = "native_py_binary_repo",
build_file_content = """
package(default_visibility = ["//visibility:public"])
py_binary(
name = "external_native_py_binary",
srcs = ["main.py"],
main = "main.py",
)
""",
path = "external_repo",
)