diff options
| author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-28 17:57:33 -0400 | 
|---|---|---|
| committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-03-28 17:57:33 -0400 | 
| commit | fd1463967a38289c16a568b1794bc2bc3ad51924 (patch) | |
| tree | 85554484d6f0203163590fb54bda49da99f14efa /setup.py | |
| parent | 92ab77c0dcde350e0d9233d6987f83e812e14daa (diff) | |
| download | cmd2-git-fd1463967a38289c16a568b1794bc2bc3ad51924.tar.gz | |
Add conditional dependency on enum34 for Python 2.7
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| @@ -71,6 +71,8 @@ EXTRAS_REQUIRE = {      ":sys_platform=='win32'": ['pyreadline'],      # Python 3.4 and earlier require contextlib2 for temporarily redirecting stderr and stdout      ":python_version<'3.5'": ['contextlib2'], +    # Python 3.3 and earlier require enum34 backport of enum module from Python 3.4 +    ":python_version<'3.4'": ['enum34'],      # Python 2.7 also requires subprocess32      ":python_version<'3.0'": ['subprocess32'],  } @@ -81,6 +83,8 @@ if int(setuptools.__version__.split('.')[0]) < 18:          INSTALL_REQUIRES.append('pyreadline')      if sys.version_info < (3, 5):          INSTALL_REQUIRES.append('contextlib2') +    if sys.version_info < (3, 4): +        INSTALL_REQUIRES.append('enum34')      if sys.version_info < (3, 0):          INSTALL_REQUIRES.append('subprocess32') | 
