From a84821aebec6a028a01b2858d3a500874056a341 Mon Sep 17 00:00:00 2001 From: "wu.shiming" Date: Sat, 18 Sep 2021 11:05:49 +0800 Subject: [PATCH] Remove references to sys.version_info We support Python 3.6 as a minimum now, making these checks no-ops. Change-Id: I824a12f382dde71c145af0c73435aa50dfc20883 --- tools/install_venv.py | 1 - tools/install_venv_common.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/tools/install_venv.py b/tools/install_venv.py index 8164e68be..e63213fad 100644 --- a/tools/install_venv.py +++ b/tools/install_venv.py @@ -59,7 +59,6 @@ def main(argv): install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, py_version, project) options = install.parse_args(argv) - install.check_python_version() install.check_dependencies() install.create_virtualenv(no_site_packages=options.no_site_packages) install.install_dependencies() diff --git a/tools/install_venv_common.py b/tools/install_venv_common.py index 4cc27b07e..813cf978e 100644 --- a/tools/install_venv_common.py +++ b/tools/install_venv_common.py @@ -44,10 +44,6 @@ class InstallVenv(object): print(message % args, file=sys.stderr) sys.exit(1) - def check_python_version(self): - if sys.version_info < (2, 6): - self.die("Need Python Version >= 2.6") - def run_command_with_code(self, cmd, redirect_output=True, check_exit_code=True): """Runs a command in an out-of-process shell.