Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bazel/cython_library.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def pyx_library(name, deps = [], py_deps = [], srcs = [], **kwargs):
native.cc_binary(
name = shared_object_name,
srcs = [stem + ".cpp"],
deps = deps + ["@local_config_python//:python_headers"],
deps = deps + ["@rules_python//python/cc:current_py_cc_headers"],
defines = defines,
linkshared = 1,
)
Expand Down
8 changes: 0 additions & 8 deletions bazel/grpc_python_deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"""Load dependencies needed to compile and test the grpc python library as a 3rd-party consumer."""

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@com_github_grpc_grpc//third_party/py:python_configure.bzl", "python_configure")

# buildifier: disable=unnamed-macro
def grpc_python_deps():
Expand All @@ -27,13 +26,6 @@ def grpc_python_deps():
url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz",
)

python_configure(name = "local_config_python")

native.bind(
name = "python_headers",
actual = "@local_config_python//:python_headers",
)

if "cython" not in native.existing_rules():
http_archive(
name = "cython",
Expand Down
13 changes: 0 additions & 13 deletions third_party/py/python_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -369,16 +369,3 @@ python_configure = repository_rule(
),
},
)
"""Detects and configures the local Python.

It expects the system have a working Python 3 installation.

Add the following to your WORKSPACE FILE:

```python
python_configure(name = "local_config_python")
```

Args:
name: A unique name for this workspace rule.
"""