WORKSPACE 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. workspace(name = "com_github_grpc_grpc")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
  4. load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
  5. grpc_deps()
  6. grpc_test_only_deps()
  7. register_execution_platforms(
  8. "//third_party/toolchains:rbe_ubuntu1604",
  9. "//third_party/toolchains:rbe_ubuntu1604_large",
  10. "//third_party/toolchains:rbe_windows",
  11. )
  12. register_toolchains(
  13. "//third_party/toolchains:cc-toolchain-clang-x86_64-default",
  14. "//third_party/toolchains/bazel_0.23.2_rbe_windows:cc-toolchain-x64_windows",
  15. )
  16. # TODO(https://github.com/grpc/grpc/issues/18331): Move off of this dependency.
  17. git_repository(
  18. name = "org_pubref_rules_protobuf",
  19. remote = "https://github.com/ghostwriternr/rules_protobuf",
  20. tag = "v0.8.2.1-alpha",
  21. )
  22. git_repository(
  23. name = "io_bazel_rules_python",
  24. commit = "8b5d0683a7d878b28fffe464779c8a53659fc645",
  25. remote = "https://github.com/bazelbuild/rules_python.git",
  26. )
  27. load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
  28. pip_import(
  29. name = "grpc_python_dependencies",
  30. requirements = "//:requirements.bazel.txt",
  31. )
  32. http_archive(
  33. name = "cython",
  34. build_file = "//third_party:cython.BUILD",
  35. sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27",
  36. strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c",
  37. urls = [
  38. "https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz",
  39. ],
  40. )
  41. load("//bazel:grpc_python_deps.bzl", "grpc_python_deps")
  42. grpc_python_deps()