diff --git a/bazel/cython_library.bzl b/bazel/cython_library.bzl index dc2ef7a8909fb..fd2881ed8c730 100644 --- a/bazel/cython_library.bzl +++ b/bazel/cython_library.bzl @@ -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, ) diff --git a/bazel/grpc_python_deps.bzl b/bazel/grpc_python_deps.bzl index dbfff526a1114..6a9f2c2234afc 100644 --- a/bazel/grpc_python_deps.bzl +++ b/bazel/grpc_python_deps.bzl @@ -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(): @@ -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", diff --git a/third_party/py/python_configure.bzl b/third_party/py/python_configure.bzl index 6569d3e9c1f99..b56c68b3ce335 100644 --- a/third_party/py/python_configure.bzl +++ b/third_party/py/python_configure.bzl @@ -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. -"""