diff --git a/setup.py b/setup.py index 696fc4028d0..b286a4f2031 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,8 @@ "six>=1.10.0", "setuptools", "attrs>=17.4.0", - "more-itertools>=4.0.0", + 'more-itertools>=4.0.0,<6.0.0;python_version<="2.7"', + 'more-itertools>=4.0.0;python_version>"2.7"', "atomicwrites>=1.0", 'funcsigs;python_version<"3.0"', 'pathlib2>=2.2.0;python_version<"3.6"',