diff options
author | Mehrdad Afshari <mehrdada@users.noreply.github.com> | 2018-07-25 23:54:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-25 23:54:10 -0700 |
commit | 158fb288fc9807ddf9d6adca6f3d4803e855ae34 (patch) | |
tree | 276a022e45c5f52b881a964138afa5081fc1f0ba /setup.py | |
parent | 1680f20c3590111614a0c446cb386f4193ffccbb (diff) | |
parent | 2e4ab7a6e26db79a2e65d420543469bd415a99e9 (diff) |
Merge pull request #16133 from a-musing-moose/feature/python-environment-markers
Switched to extra_requires for Python 2 specific requirements
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -279,9 +279,6 @@ INSTALL_REQUIRES = ( 'six>=1.5.2', ) -if not PY3: - INSTALL_REQUIRES += ('futures>=2.2.0', 'enum34>=1.0.4') - SETUP_REQUIRES = INSTALL_REQUIRES + ( 'sphinx>=1.3', 'sphinx_rtd_theme>=0.1.8', @@ -346,4 +343,10 @@ setuptools.setup( install_requires=INSTALL_REQUIRES, setup_requires=SETUP_REQUIRES, cmdclass=COMMAND_CLASS, + extra_requires={ + ':python_version < "3"': [ + 'futures>=2.2.0', + 'enum34>=1.0.4' + ] + }, ) |