summaryrefslogtreecommitdiff
path: root/science/libtensorflow1/files/patch-configure.py
blob: 26abc48aad9d7130c2b5b8c0e1bb986c98eda778 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- configure.py.orig	2021-01-04 20:18:42 UTC
+++ configure.py
@@ -475,7 +475,7 @@ def check_bazel_version(min_version, max_version):
     print('Cannot find bazel. Please install bazel.')
     sys.exit(0)
   curr_version = run_shell(
-      ['bazel', '--batch', '--bazelrc=/dev/null', 'version'])
+      ['bazel', '--batch', '--output_user_root=/tmp/.bazel', '--bazelrc=/dev/null', 'version'])
 
   for line in curr_version.split('\n'):
     if 'Build label: ' in line: