diff --git a/requirements.txt b/requirements.txt index f72de67e..3baf7c86 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # List required packages in this file, one per line. -numpy +numpy<2 scipy sympy matplotlib diff --git a/scripts/install-deps.sh b/scripts/install-deps.sh index 60a1fb05..c4979b3d 100755 --- a/scripts/install-deps.sh +++ b/scripts/install-deps.sh @@ -5,16 +5,15 @@ set -vxeuo pipefail platform="$(uname)" if [ "${platform}" == "Linux" ]; then - # sudo apt-get update -y - # sudo apt-get install -y \ - # gfortran \ - # openmpi-bin \ - # openmpi-doc \ - # libopenmpi-dev \ - # libopenblas-dev \ - # libarpack2-dev \ - # libparpack2-dev - echo "Skipping system packages installation in favor of conda packages for building." + sudo apt-get install -y \ + gfortran \ + openmpi-bin \ + openmpi-doc \ + libopenmpi-dev \ + libopenblas-dev \ + libarpack2-dev \ + libparpack2-dev + # echo "Skipping system packages installation in favor of conda packages for building." elif [ "${platform}" == "Darwin" ]; then echo "gfortran is expected to exist already." fi @@ -30,8 +29,12 @@ python -VV python -m pip install --upgrade pip setuptools wheel numpy -# # Generate .whl file. -python setup.py sdist bdist_wheel +# Generate .whl file. +if [ "${platform}" == "Linux" ]; then + python setup.py sdist bdist_wheel --plat-name=manylinux2014_x86_64 +else + python setup.py sdist bdist_wheel +fi ls -la dist/ # Install this package and the packages listed in requirements.txt.