diff --git a/tools/serving_check_style.sh b/tools/serving_check_style.sh index 8739ba7e3b0d63a1cfe4d5d6b21e721fe8e8625f..f8ebad3b46223b989cfc5b42a67ea1db94103caa 100644 --- a/tools/serving_check_style.sh +++ b/tools/serving_check_style.sh @@ -23,6 +23,12 @@ function check_style() { pre-commit install clang-format --version + # virtualenv(20.0.19) was updated on May 3. The new version of virtualenv + # uses `sysconfig.get_makefile_filename`. But python2.7.5 does not support + # `sysconfig.get_makefile_filename`, only `sysconfig._get_makefile_filename`. + # See more: https://bugs.python.org/issue22199 + pip install -U 'virtualenv==20.0.18' + if ! pre-commit run -a ; then git diff exit 1