From b2bec4aa0c05b424339e6c791997da227d0317a7 Mon Sep 17 00:00:00 2001 From: Richard Belleville Date: Tue, 12 Feb 2019 15:36:50 -0800 Subject: [PATCH] Add environment markers to python2-only dependencies --- setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 7f58e7ca070..f533e7b77cf 100644 --- a/setup.py +++ b/setup.py @@ -298,12 +298,11 @@ PACKAGE_DIRECTORIES = { } INSTALL_REQUIRES = ( - 'six>=1.5.2', + "six>=1.5.2", + "futures>=2.2.0; python_version<'3.2'", + "enum34>=1.0.4; python_version<'3.4'", ) -if not PY3: - INSTALL_REQUIRES += ('futures>=2.2.0', 'enum34>=1.0.4') - SETUP_REQUIRES = INSTALL_REQUIRES + ( 'Sphinx~=1.8.1', 'six>=1.10',