Remove logic for Python <= 2.6
... because that old version is no longer supported. Also the check_python_version method is removed by this change, because the required python version is now enforced by setup.cfg. Change-Id: Ie9c91adcb81a1a5dbca2587b6592a58d4cc91e4a
This commit is contained in:
parent
73ebb70542
commit
b07dd1d2f8
@ -322,11 +322,7 @@ class SubunitTestResult(testtools.TestResult):
|
|||||||
|
|
||||||
test = subunit.ProtocolTestCase(sys.stdin, passthrough=None)
|
test = subunit.ProtocolTestCase(sys.stdin, passthrough=None)
|
||||||
|
|
||||||
if sys.version_info[0:2] <= (2, 6):
|
runner = unittest.TextTestRunner(verbosity=2, resultclass=SubunitTestResult)
|
||||||
runner = unittest.TextTestRunner(verbosity=2)
|
|
||||||
else:
|
|
||||||
runner = unittest.TextTestRunner(
|
|
||||||
verbosity=2, resultclass=SubunitTestResult)
|
|
||||||
|
|
||||||
if runner.run(test).wasSuccessful():
|
if runner.run(test).wasSuccessful():
|
||||||
exit_code = 0
|
exit_code = 0
|
||||||
|
@ -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()
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
"""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 2.6.
|
|
||||||
|
|
||||||
Synced in from openstack-common
|
Synced in from openstack-common
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -44,10 +41,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.
|
||||||
|
Loading…
Reference in New Issue
Block a user