mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 03:55:38 -04:00
Co-authored-by: GuySten <guyste@post.bgu.ac.il> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
46 lines
1.1 KiB
Bash
Executable file
46 lines
1.1 KiB
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
# Upgrade pip, pytest, numpy before doing anything else.
|
|
pip install --upgrade pip
|
|
pip install --upgrade pytest
|
|
pip install --upgrade numpy
|
|
|
|
# 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
|
|
|
|
# Install libMesh if needed
|
|
if [[ $LIBMESH = 'y' ]]; then
|
|
./tools/ci/gha-install-libmesh.sh
|
|
fi
|
|
|
|
# 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
|
|
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
|
|
|
|
# Install Python API in editable mode
|
|
pip install -e .[test,vtk,ci]
|