Skip to content

Commit

Permalink
Fixed wheel generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lajerm committed Aug 8, 2024
1 parent 1c9548f commit 8f28f20
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# List required packages in this file, one per line.
numpy
numpy<2
scipy
sympy
matplotlib
Expand Down
46 changes: 32 additions & 14 deletions scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,47 @@

set -vxeuo pipefail

sudo apt-get update -y
sudo apt-get install -y \
gfortran \
openmpi-bin \
openmpi-doc \
libopenmpi-dev \
libopenblas-dev \
libarpack2-dev \
libparpack2-dev
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."
elif [ "${platform}" == "Darwin" ]; then
echo "gfortran is expected to exist already."
fi

gfortran --version
which gfortran

# These packages are installed in the base environment but may be older
# versions. Explicitly upgrade them because they often create
# installation problems if out of date.
which python
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.
pip install -v .
python -m pip install dist/edrixs-*-cp${PYTHON_VERSION_NODOT}*.whl

# Install extra requirements for running tests and building docs.
pip install -r requirements-dev.txt
python -m pip install -r requirements-dev.txt

# List the depencencies
pip list
python -m pip list

0 comments on commit 8f28f20

Please sign in to comment.