2022-03-07 07:53:48 -05:00
|
|
|
From 30bd860bd8a8bb223f3aab86afc2ed28c5bd5a7d Mon Sep 17 00:00:00 2001
|
|
|
|
From: acxz <17132214+acxz@users.noreply.github.com>
|
|
|
|
Date: Thu, 17 Feb 2022 11:07:42 -0500
|
|
|
|
Subject: [PATCH] fix python command on windows
|
|
|
|
|
|
|
|
---
|
|
|
|
third_party/py/python_configure.bzl | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2020-05-05 10:47:49 -07:00
|
|
|
diff --git third_party/py/python_configure.bzl third_party/py/python_configure.bzl
|
2022-03-07 07:53:48 -05:00
|
|
|
index 4e5218118ee5..7ec4459d6109 100644
|
2020-05-05 10:47:49 -07:00
|
|
|
--- third_party/py/python_configure.bzl
|
|
|
|
+++ third_party/py/python_configure.bzl
|
2022-03-07 07:53:48 -05:00
|
|
|
@@ -206,7 +206,7 @@ def _get_python_lib(repository_ctx, python_bin, lib_path_key):
|
2021-08-21 11:33:11 -07:00
|
|
|
" paths.append(path)\n" + "if len(paths) >=1:\n" +
|
|
|
|
" print(paths[0])\n" + "END"
|
|
|
|
)
|
|
|
|
- cmd = "%s - %s" % (python_bin, print_lib)
|
2020-05-05 10:47:49 -07:00
|
|
|
+ cmd = '"%s" - %s' % (python_bin, print_lib)
|
2021-08-21 11:33:11 -07:00
|
|
|
result = repository_ctx.execute([_get_bash_bin(repository_ctx), "-c", cmd])
|
|
|
|
return result.stdout.strip("\n")
|
|
|
|
|