Skip to content

Commit

Permalink
pin sklearn and tornado versions for Py2 (#2510)
Browse files Browse the repository at this point in the history
* pin sklearn version for Py2

* pin tornado version
  • Loading branch information
mpenkov authored May 30, 2019
1 parent 7484627 commit 1bd9e84
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,22 @@ def finalize_options(self):
'cython',
'pyemd',
'testfixtures',
'scikit-learn',
'Morfessor==2.0.2a4',
'python-Levenshtein >= 0.10.2',
'visdom >= 0.1.8, != 0.1.8.7',
]

if sys.version_info[:2] == (2, 7):
#
# 0.20.3 is the last version of scikit-learn that supports Py2.
# Similarly, for version 5.1.1 of tornado. We require tornado indirectly
# via visdom.
#
win_testenv.append('scikit-learn==0.20.3')
win_testenv.append('tornado==5.1.1')
else:
win_testenv.append('scikit-learn')

linux_testenv = win_testenv[:]

if sys.version_info < (3, 7):
Expand Down

0 comments on commit 1bd9e84

Please sign in to comment.