From 8cd68b2a5ea537f2953bdd592b1a1973b148431d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radim=20=C5=98eh=C5=AF=C5=99ek?= Date: Thu, 30 Apr 2020 14:36:46 +0200 Subject: [PATCH] avoid py3.6 segfault in Travis tests --- setup.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 0a24c67b7d..86d1534ed8 100644 --- a/setup.py +++ b/setup.py @@ -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' #