OpenMC/tools/ci/gha-install.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.3 KiB
Bash
Raw Permalink Normal View History

#!/bin/bash
set -ex
2022-01-03 09:40:33 -05:00
# Upgrade pip, pytest, numpy before doing anything else.
2020-12-11 20:04:26 +00:00
pip install --upgrade pip
pip install --upgrade pytest
pip install --upgrade numpy
2020-12-11 20:04:26 +00:00
# Install NJOY 2016
./tools/ci/gha-install-njoy.sh
# Install DAGMC if needed
if [[ $DAGMC = 'y' ]]; then
./tools/ci/gha-install-dagmc.sh
fi
2022-11-18 17:48:19 -03:00
# Install NCrystal if needed
if [[ $NCRYSTAL = 'y' ]]; then
./tools/ci/gha-install-ncrystal.sh
fi
# Install vectfit for WMP generation if needed
if [[ $VECTFIT = 'y' ]]; then
./tools/ci/gha-install-vectfit.sh
2020-10-26 19:20:38 -05:00
fi
2020-05-20 21:04:01 -05:00
2020-10-26 19:20:38 -05:00
# Install libMesh if needed
2020-05-20 21:04:01 -05:00
if [[ $LIBMESH = 'y' ]]; then
./tools/ci/gha-install-libmesh.sh
fi
2022-12-22 14:03:26 -06:00
# Install MCPL
./tools/ci/gha-install-mcpl.sh
# For MPI configurations, make sure mpi4py and h5py are built against the
# correct version of MPI
if [[ $MPI == 'y' ]]; then
pip install --no-binary=mpi4py mpi4py
export CC=mpicc
export HDF5_MPI=ON
2021-04-23 13:26:10 -05:00
export HDF5_DIR=/usr/lib/x86_64-linux-gnu/hdf5/mpich
pip install wheel "cython<3.0"
pip install --no-binary=h5py --no-build-isolation h5py
fi
# Build and install OpenMC executable
python tools/ci/gha-install.py
2019-02-22 11:17:26 -06:00
# Install Python API in editable mode
pip install -e .[test,vtk]
2018-10-04 12:43:32 -05:00
# For coverage testing of the C++ source files
pip install cpp-coveralls
# For coverage testing of the Python source files
pip install coveralls