-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMODULE.bazel
More file actions
77 lines (71 loc) · 3.13 KB
/
Copy pathMODULE.bazel
File metadata and controls
77 lines (71 loc) · 3.13 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
module(name = "arolla")
bazel_dep(name = "abseil-cpp", version = "20260526.0", repo_name = "com_google_absl")
bazel_dep(name = "abseil-py", version = "2.1.0", repo_name = "com_google_absl_py")
bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "boost.math", version = "1.87.0")
bazel_dep(name = "double-conversion", version = "3.3.1", repo_name = "com_google_double_conversion")
bazel_dep(name = "google_benchmark", version = "1.9.5", repo_name = "com_google_benchmark")
bazel_dep(name = "googletest", version = "1.17.0.bcr.1", repo_name = "com_google_googletest")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "protobuf", version = "31.1", repo_name = "com_google_protobuf")
bazel_dep(name = "pybind11_abseil", version = "202402.0")
bazel_dep(name = "pybind11_bazel", version = "3.0.1")
bazel_dep(name = "pybind11_protobuf", version = "0.0.0-20250210-f02a2b7")
bazel_dep(name = "re2", version = "2025-11-05.bcr.1", repo_name = "com_googlesource_code_re2")
bazel_dep(name = "riegeli", version = "0.0.0-20250822-9f2744d", repo_name = "com_google_riegeli")
bazel_dep(name = "rules_cc", version = "0.2.17")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "rules_shell", version = "0.7.1")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
ignore_root_user_error = True, # Required for our containerized CI environments.
is_default = True,
python_version = "3.12",
)
python.toolchain(
ignore_root_user_error = True,
python_version = "3.13",
)
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
extra_pip_args = ["--no-cache-dir"],
hub_name = "arolla_pip_deps",
python_version = "3.12",
requirements_lock = "//:requirements_lock.txt",
)
pip.parse(
extra_pip_args = ["--no-cache-dir"],
hub_name = "arolla_pip_deps",
python_version = "3.13",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, pip_deps = "arolla_pip_deps")
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "com_google_cityhash",
build_file = "external/BUILD.cityhash",
integrity = "sha256-sNnBNfNr3Ev3ThP3/+i6otiBOC9n57A5/xc0vSQwIBg=",
patch_cmds = [
# Running "configure" creates the config.h file needed for this library.
# Then, the source files are moved to a new "cityhash" directory for
# consistency with the namespace.
"./configure",
"mkdir cityhash",
"mv config.h cityhash",
"mv src/city.h cityhash",
"mv src/citycrc.h cityhash",
"mv src/city.cc cityhash",
],
patches = [
# Apply patches to add a "third_party_cityhash" namespace to the functions.
"external/cityhash.patch",
],
strip_prefix = "cityhash-master",
url = "https://github.com/google/cityhash/archive/refs/heads/master.tar.gz",
)
http_archive(
name = "icu4c",
build_file = "external/BUILD.icu4c",
integrity = "sha256-TLp7es0dPELES7DBS+ZjcJjH+vKzMM6Ha8XzuRXQl0U=",
url = "https://github.com/unicode-org/icu/releases/download/release-69-1/icu4c-69_1-src.tgz",
)