81371bf41874163b54f3918f50d4b39070faceff
[platform/upstream/grpc.git] / WORKSPACE
1 workspace(name = "com_github_grpc_grpc")
2
3 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4 load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
5 load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
6
7 grpc_deps()
8
9 grpc_test_only_deps()
10
11 register_execution_platforms(
12     "//third_party/toolchains:rbe_ubuntu1604",
13     "//third_party/toolchains:rbe_ubuntu1604_large",
14 )
15
16 register_toolchains(
17     "//third_party/toolchains:cc-toolchain-clang-x86_64-default",
18 )
19
20 http_archive(
21     name = "cython",
22     build_file = "//third_party:cython.BUILD",
23     sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27",
24     strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c",
25     urls = [
26         "https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz",
27     ],
28 )
29
30 load("//third_party/py:python_configure.bzl", "python_configure")
31
32 python_configure(name = "local_config_python")
33
34 git_repository(
35     name = "io_bazel_rules_python",
36     commit = "8b5d0683a7d878b28fffe464779c8a53659fc645",
37     remote = "https://github.com/bazelbuild/rules_python.git",
38 )
39
40 load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
41
42 pip_repositories()
43
44 pip_import(
45     name = "grpc_python_dependencies",
46     requirements = "//:requirements.bazel.txt",
47 )
48
49 load("@grpc_python_dependencies//:requirements.bzl", "pip_install")
50
51 pip_install()
52
53 # NOTE(https://github.com/pubref/rules_protobuf/pull/196): Switch to upstream repo after this gets merged.
54 git_repository(
55     name = "org_pubref_rules_protobuf",
56     remote = "https://github.com/ghostwriternr/rules_protobuf",
57     tag = "v0.8.2.1-alpha",
58 )
59
60 load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
61
62 py_proto_repositories()