mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
23 lines
1.2 KiB
Diff
23 lines
1.2 KiB
Diff
diff --git third_party/py/python_configure.bzl third_party/py/python_configure.bzl
|
|
--- third_party/py/python_configure.bzl
|
|
+++ third_party/py/python_configure.bzl
|
|
@@ -163,1 +163,1 @@
|
|
- bash_bin_path = repository_ctx.which("bash")
|
|
+ bash_bin_path = repository_ctx.which("bash" if not _is_windows(repository_ctx) else "sh.exe")
|
|
@@ -193,1 +193,1 @@ def _get_python_lib(repository_ctx, python_bin, lib_path_key):
|
|
- cmd = '%s - %s' % (python_bin, print_lib)
|
|
+ cmd = '"%s" - %s' % (python_bin, print_lib)
|
|
@@ -275,10 +275,10 @@
|
|
_create_single_version_package(repository_ctx,
|
|
"_python2",
|
|
_PYTHON2_BIN_PATH,
|
|
- "python",
|
|
+ "python" if not _is_windows(repository_ctx) else "python.exe",
|
|
_PYTHON2_LIB_PATH)
|
|
_create_single_version_package(repository_ctx,
|
|
"_python3",
|
|
_PYTHON3_BIN_PATH,
|
|
- "python3",
|
|
+ "python3" if not _is_windows(repository_ctx) else "python.exe",
|
|
_PYTHON3_LIB_PATH)
|
|
--
|