Remove references to sys.version_info

We support Python 3.6 as a minimum now, making these checks no-ops.

Change-Id: I824a12f382dde71c145af0c73435aa50dfc20883
This commit is contained in:
wu.shiming 2021-09-18 11:05:49 +08:00
parent 5934219e57
commit a84821aebe
2 changed files with 0 additions and 5 deletions

View File

@ -59,7 +59,6 @@ def main(argv):
install = install_venv.InstallVenv(root, venv, pip_requires, test_requires, install = install_venv.InstallVenv(root, venv, pip_requires, test_requires,
py_version, project) py_version, project)
options = install.parse_args(argv) options = install.parse_args(argv)
install.check_python_version()
install.check_dependencies() install.check_dependencies()
install.create_virtualenv(no_site_packages=options.no_site_packages) install.create_virtualenv(no_site_packages=options.no_site_packages)
install.install_dependencies() install.install_dependencies()

View File

@ -44,10 +44,6 @@ class InstallVenv(object):
print(message % args, file=sys.stderr) print(message % args, file=sys.stderr)
sys.exit(1) 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, def run_command_with_code(self, cmd, redirect_output=True,
check_exit_code=True): check_exit_code=True):
"""Runs a command in an out-of-process shell. """Runs a command in an out-of-process shell.