Remove references to sys.version_info

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

Change-Id: I14d865fa9cc1961d7f6b7a9e875dddd2979e846a
This commit is contained in:
wu.shiming 2021-09-18 11:15:26 +08:00
parent 98d0021d8a
commit 6e364c709f
2 changed files with 0 additions and 5 deletions

View File

@ -61,7 +61,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()

View File

@ -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.