WORKSPACE 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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_execution_platforms(
  6. "//third_party/toolchains:all",
  7. )
  8. register_toolchains(
  9. "//third_party/toolchains:all",
  10. )
  11. new_http_archive(
  12. name = "cython",
  13. build_file = "//third_party:cython.BUILD",
  14. sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27",
  15. strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c",
  16. urls = [
  17. "https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz",
  18. ],
  19. )
  20. load("//third_party/py:python_configure.bzl", "python_configure")
  21. python_configure(name = "local_config_python")
  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_repositories()
  29. pip_import(
  30. name = "grpc_python_dependencies",
  31. requirements = "//:requirements.bazel.txt",
  32. )
  33. load("@grpc_python_dependencies//:requirements.bzl", "pip_install")
  34. pip_install()
  35. # NOTE(https://github.com/pubref/rules_protobuf/pull/196): Switch to upstream repo after this gets merged.
  36. git_repository(
  37. name = "org_pubref_rules_protobuf",
  38. remote = "https://github.com/ghostwriternr/rules_protobuf",
  39. tag = "v0.8.2.1-alpha",
  40. )
  41. load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
  42. py_proto_repositories()