Add instructions to downgrade Bazel if greater than max_bazel_version.
PiperOrigin-RevId: 226393897
This commit is contained in:
parent
43cb5e8be4
commit
e0963c4073
@ -480,7 +480,9 @@ def check_bazel_version(min_version, max_version):
|
|||||||
if (curr_version_int > max_version_int and
|
if (curr_version_int > max_version_int and
|
||||||
'TF_IGNORE_MAX_BAZEL_VERSION' not in os.environ):
|
'TF_IGNORE_MAX_BAZEL_VERSION' not in os.environ):
|
||||||
print('Please downgrade your bazel installation to version %s or lower to '
|
print('Please downgrade your bazel installation to version %s or lower to '
|
||||||
'build TensorFlow!' % max_version)
|
'build TensorFlow! To downgrade: download the installer for the old '
|
||||||
|
'version (from https://github.com/bazelbuild/bazel/releases) then '
|
||||||
|
'run the installer.' % max_version)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
return curr_version
|
return curr_version
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user