ray/thirdparty/patches/grpc-windows-python-header-path.patch
Clark Zinzow 5ca28b1cc8
[Core] Update Bazel (to 3.4.1), gRPC, boringssl, and absl as a precursor to gRPC streaming PR. (#17903)
* Update Bazel (to 3.4.1), gRPC, boringssl, absl.

* Always reinstall Bazel if needing to upgrade to a new Bazel version.

* Add patch for properly detecting Windows Python headers when building gRPC.

* Add minimum Bazel version check.

* Update docs with new Bazel version.
2021-08-21 11:33:11 -07:00

13 lines
662 B
Diff

diff --git a/third_party/py/python_configure.bzl b/third_party/py/python_configure.bzl
--- third_party/py/python_configure.bzl
+++ third_party/py/python_configure.bzl
@@ -256,7 +256,7 @@ def _get_python_include(repository_ctx, python_bin):
python_bin,
"-c",
"import os;" +
- "main_header = os.path.join('{}', 'Python.h');".format(include_path) +
+ "main_header = os.path.join(r'{}', 'Python.h');".format(include_path) +
"assert os.path.exists(main_header), main_header + ' does not exist.'",
],
error_msg = "Unable to find Python headers for {}".format(python_bin),
--