Skip to content

Commit b2bec4a

Browse files
committed
Add environment markers to python2-only dependencies
1 parent 20ab15a commit b2bec4a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

setup.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -298,12 +298,11 @@ def cython_extensions_and_necessity():
298298
}
299299

300300
INSTALL_REQUIRES = (
301-
'six>=1.5.2',
301+
"six>=1.5.2",
302+
"futures>=2.2.0; python_version<'3.2'",
303+
"enum34>=1.0.4; python_version<'3.4'",
302304
)
303305

304-
if not PY3:
305-
INSTALL_REQUIRES += ('futures>=2.2.0', 'enum34>=1.0.4')
306-
307306
SETUP_REQUIRES = INSTALL_REQUIRES + (
308307
'Sphinx~=1.8.1',
309308
'six>=1.10',

0 commit comments

Comments
 (0)