Commit b14f0645 authored by Jason R. Coombs's avatar Jason R. Coombs

Simplify _build_install_args now that Python 2.6 is required.

parent aa90fa16
......@@ -336,13 +336,7 @@ def _build_install_args(options):
"""
Build the arguments to 'python setup.py install' on the setuptools package
"""
install_args = []
if options.user_install:
if sys.version_info < (2, 6):
log.warn("--user requires Python 2.6 or later")
raise SystemExit(1)
install_args.append('--user')
return install_args
return ['--user'] if options.user_install else []
def _parse_args():
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment