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
|
|
|
|
|
|
2025-03-05 22:45:27 +01:00
|
|
|
# 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
|
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
|
2025-05-02 18:38:10 -05:00
|
|
|
pip install mcpl
|
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
|
2026-02-08 16:22:39 -06:00
|
|
|
# Install h5py without build isolation to pick up already installed mpi4py
|
2026-02-26 18:18:04 -06:00
|
|
|
pip install setuptools Cython pkgconfig
|
2026-02-08 16:22:39 -06:00
|
|
|
pip install --no-build-isolation --no-binary=h5py 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
|
2024-07-24 13:27:39 +01:00
|
|
|
pip install -e .[test,vtk,ci]
|