WORKSPACE 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. workspace(name = "com_github_grpc_grpc")
  2. load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
  3. grpc_deps()
  4. grpc_test_only_deps()
  5. register_toolchains(
  6. "//third_party/toolchains:all",
  7. )
  8. new_http_archive(
  9. name = "cython",
  10. build_file = "//third_party:cython.BUILD",
  11. sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27",
  12. strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c",
  13. urls = [
  14. "https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz",
  15. ],
  16. )
  17. load("//third_party/py:python_configure.bzl", "python_configure")
  18. python_configure(name = "local_config_python")
  19. git_repository(
  20. name = "io_bazel_rules_python",
  21. commit = "8b5d0683a7d878b28fffe464779c8a53659fc645",
  22. remote = "https://github.com/bazelbuild/rules_python.git",
  23. )
  24. load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
  25. pip_repositories()
  26. pip_import(
  27. name = "grpc_python_dependencies",
  28. requirements = "//:requirements.bazel.txt",
  29. )
  30. load("@grpc_python_dependencies//:requirements.bzl", "pip_install")
  31. pip_install()
  32. # NOTE(https://github.com/pubref/rules_protobuf/pull/196): Switch to upstream repo after this gets merged.
  33. git_repository(
  34. name = "org_pubref_rules_protobuf",
  35. remote = "https://github.com/ghostwriternr/rules_protobuf",
  36. tag = "v0.8.2.1-alpha",
  37. )
  38. load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
  39. py_proto_repositories()