2017-12-14 16:42:24 +07:00
|
|
|
#!/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
|
2022-12-27 22:51:31 -06:00
|
|
|
pip install --upgrade numpy
|
2020-12-11 20:04:26 +00:00
|
|
|
|
2017-12-14 16:42:24 +07:00
|
|
|
# Install NJOY 2016
|
2020-12-16 14:33:12 +00:00
|
|
|
./tools/ci/gha-install-njoy.sh
|
2017-12-14 16:42:24 +07:00
|
|
|
|
2018-09-26 23:11:37 -05:00
|
|
|
# Install DAGMC if needed
|
|
|
|
|
if [[ $DAGMC = 'y' ]]; then
|
2020-12-16 14:33:12 +00:00
|
|
|
./tools/ci/gha-install-dagmc.sh
|
2018-09-26 23:11:37 -05:00
|
|
|
fi
|
|
|
|
|
|
2022-11-18 17:48:19 -03:00
|
|
|
# Install NCrystal if needed
|
|
|
|
|
if [[ $NCRYSTAL = 'y' ]]; then
|
|
|
|
|
./tools/ci/gha-install-ncrystal.sh
|
|
|
|
|
fi
|
|
|
|
|
|
2020-09-10 07:31:46 +08:00
|
|
|
# Install vectfit for WMP generation if needed
|
|
|
|
|
if [[ $VECTFIT = 'y' ]]; then
|
2020-12-16 14:33:12 +00:00
|
|
|
./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
|
2020-12-23 12:20:45 -06:00
|
|
|
./tools/ci/gha-install-libmesh.sh
|
2020-09-10 07:31:46 +08:00
|
|
|
fi
|
|
|
|
|
|
2022-12-22 14:03:26 -06:00
|
|
|
# Install MCPL
|
|
|
|
|
./tools/ci/gha-install-mcpl.sh
|
2022-12-21 00:22:38 +01:00
|
|
|
|
2021-04-20 23:05:56 -05:00
|
|
|
# For MPI configurations, make sure mpi4py and h5py are built against the
|
|
|
|
|
# correct version of MPI
|
2018-02-14 07:22:16 -06:00
|
|
|
if [[ $MPI == 'y' ]]; then
|
|
|
|
|
pip install --no-binary=mpi4py mpi4py
|
2021-04-20 23:05:56 -05:00
|
|
|
|
|
|
|
|
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
|
2023-07-20 09:23:42 -04:00
|
|
|
pip install wheel "cython<3.0"
|
2023-01-30 23:18:07 -06:00
|
|
|
pip install --no-binary=h5py --no-build-isolation h5py
|
2018-02-14 07:22:16 -06:00
|
|
|
fi
|
|
|
|
|
|
2018-01-29 16:30:57 -06:00
|
|
|
# Build and install OpenMC executable
|
2020-12-16 14:33:12 +00:00
|
|
|
python tools/ci/gha-install.py
|
2018-01-26 16:01:20 -06:00
|
|
|
|
2019-02-22 11:17:26 -06:00
|
|
|
# Install Python API in editable mode
|
2019-05-07 06:59:41 -05:00
|
|
|
pip install -e .[test,vtk]
|
2018-10-04 12:43:32 -05:00
|
|
|
|
2019-05-20 14:26:15 -04:00
|
|
|
# For coverage testing of the C++ source files
|
|
|
|
|
pip install cpp-coveralls
|
|
|
|
|
|
|
|
|
|
# For coverage testing of the Python source files
|
2018-09-05 20:12:08 -05:00
|
|
|
pip install coveralls
|