Skip to content

Commit

Permalink
avoid py3.6 segfault in Travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
piskvorky committed Apr 30, 2020
1 parent a905545 commit 8cd68b2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,14 @@ def run(self):

# Add additional requirements for testing on Linux. We skip some tests on Windows,
# because the libraries below are too tricky to install there.
linux_testenv = win_testenv + [
'tensorflow',
'keras',
]
linux_testenv = win_testenv[:]
if sys.version_info >= (3, 7):
# HACK: Installing tensorflow causes a segfault in Travis on py3.6. Other Pythons work – a mystery.
# See https://github.com/RaRe-Technologies/gensim/pull/2814#issuecomment-621477948
linux_testenv += [
'tensorflow',
'keras',
]

NUMPY_STR = 'numpy >= 1.11.3'
#
Expand Down

0 comments on commit 8cd68b2

Please sign in to comment.