Remove unused check_python_version

This method is not used actually. In addition now the required python
version is enforced by setup.cfg .

Change-Id: If0cbb97c4adfb51f775bf438ad50c8ddf832e794
This commit is contained in:
Takashi Kajinami 2022-07-17 00:44:56 +09:00
parent dfbd08f35f
commit ef4fc3e558

View File

@ -16,16 +16,12 @@
"""Provides methods needed by installation script for OpenStack development """Provides methods needed by installation script for OpenStack development
virtual environments. virtual environments.
Since this script is used to bootstrap a virtualenv from the system's Python
environment, it should be kept strictly compatible with Python 3.6.
Synced in from openstack-common Synced in from openstack-common
""" """
import optparse import optparse
import os import os
import subprocess import subprocess
import sys
class InstallVenv(object): class InstallVenv(object):
@ -44,10 +40,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 < (3, 6):
self.die("Need Python Version >= 3.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.