mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 03:55:38 -04:00
33 lines
835 B
Bash
Executable file
33 lines
835 B
Bash
Executable file
#!/bin/bash
|
|
set -ex
|
|
|
|
# Install NJOY 2016
|
|
./tools/ci/travis-install-njoy.sh
|
|
|
|
# Running OpenMC's setup.py requires numpy/cython already. NumPy float
|
|
# formatting changed in version 1.14, so stick with a lower version until we can
|
|
# handle it in our test suite
|
|
pip install 'numpy<1.14'
|
|
pip install cython
|
|
|
|
# pytest installed by default -- make sure we get latest
|
|
pip install --upgrade pytest
|
|
|
|
# Pandas stopped supporting Python 3.4 with version 0.21
|
|
if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]]; then
|
|
pip install pandas==0.20.3
|
|
fi
|
|
|
|
# Install mpi4py for MPI configurations
|
|
if [[ $MPI == 'y' ]]; then
|
|
pip install --no-binary=mpi4py mpi4py
|
|
fi
|
|
|
|
# Build and install OpenMC executable
|
|
python tools/ci/travis-install.py
|
|
|
|
# Install Python API in editable mode
|
|
pip install -e .[test]
|
|
|
|
# For uploading to coveralls
|
|
pip install python-coveralls
|