From 5205a740710f6f895bda2bfad4e738c9b4f108f4 Mon Sep 17 00:00:00 2001 From: Toby Roseman Date: Fri, 21 Aug 2020 13:40:59 -0700 Subject: [PATCH] Fix master: a dependency changed and broke us on Linux (#3300) --- scripts/install_python_toolchain.sh | 4 ++-- src/python/setup.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/install_python_toolchain.sh b/scripts/install_python_toolchain.sh index 62d30532a2..ebe5d6a54c 100755 --- a/scripts/install_python_toolchain.sh +++ b/scripts/install_python_toolchain.sh @@ -35,9 +35,9 @@ function linux_patch_sigfpe_handler { $PIP install --upgrade "pip" if [[ "$USE_MINIMAL" -eq 1 ]]; then - $PIP install -r scripts/requirements-minimal.txt + $PIP install -r scripts/requirements-minimal.txt --prefer-binary else - $PIP install -r scripts/requirements.txt + $PIP install -r scripts/requirements.txt --prefer-binary fi # install pre-commit hooks for git diff --git a/src/python/setup.py b/src/python/setup.py index 587c2d643b..2fa0c096d3 100644 --- a/src/python/setup.py +++ b/src/python/setup.py @@ -186,6 +186,10 @@ def do_not_install(require): # See: https://github.com/apple/turicreate/issues/3003 install_requires.append("tensorflow >= 2.0.0,!= 2.1.0,!= 2.1.1") + # numba 0.51 started using "manylinux2014" rather than "manylinux2010". + # This breaks a lot of Linux installs. + install_requires.append("numba < 0.51.0") + setup( name="turicreate", version=VERSION,