OpenMC/tools/ci/gha-install.sh

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

47 lines
1.1 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
# Install NCrystal and verify installation
pip install 'ncrystal>=4.1.0'
nctool --test
2022-11-18 17:48:19 -03: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
pip install mcpl
# 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
# Install h5py without build isolation to pick up already installed mpi4py
pip install setuptools Cython pkgconfig
pip install --no-build-isolation --no-binary=h5py 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,ci]