Skip to content

Commit

Permalink
Merge pull request #58 from JohanSchott/install_openmpi_with_homebrew
Browse files Browse the repository at this point in the history
Install open-mpi with homebrew on macOS
  • Loading branch information
JohanSchott authored Jul 4, 2024
2 parents 3e33bac + 13a676d commit 1061674
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 29 deletions.
21 changes: 5 additions & 16 deletions install_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,15 @@ cd "$( dirname "${BASH_SOURCE[0]}" )"
# System libraries
if [ "$(uname)" == "Darwin" ]; then
# Mac OS X specific things here
# If homebrew is not installed, install it by following the
# instructions on https://brew.sh/
if ! which gfortran; then
echo Install gfortran
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew doctor
brew install gcc
brew install swig
fi
if ! which mpirun; then
echo Install Open-MPI
curl -O https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.1.tar.gz
mv openmpi-4.1.1.tar.gz /tmp/
cd /tmp
tar -xf openmpi-4.1.1.tar.gz
cd openmpi-4.1.1/
mkdir /usr/local/openmpi
./configure --prefix=/usr/local/openmpi
make all
make install
export PATH=${PATH}:/usr/local/openmpi/bin
brew install open-mpi
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Only for Debian, Ubuntu, and related Linux distributions
Expand All @@ -43,5 +32,5 @@ python3 -m venv ~/envED
. ~/envED/bin/activate

# Install required python libraries.
pip install --disable-pip-version-check -q -U uv==0.1.21
uv pip install -q -r requirements.in
pip install --disable-pip-version-check -q -U uv==0.2.15
uv pip install -q -r requirements.in
26 changes: 13 additions & 13 deletions requirements.in
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# Needed python packages
bitarray==2.9.2
black==24.3.0
h5py==3.10.0
matplotlib==3.8.3
mpi4py==3.1.5
numpy==1.26.4
numpydoc==1.6.0
pytest==8.1.1
sympy==1.12
scipy==1.12.0
sphinx==7.2.6
black==24.4.2
h5py==3.11.0
matplotlib==3.9.0
mpi4py==3.1.6
numpy==2.0.0
numpydoc==1.7.0
pytest==8.2.2
sympy==1.12.1
scipy==1.14.0
sphinx==7.3.7
sphinx-rtd-theme==2.0.0
mypy==1.9.0
mypy==1.10.1
sphinx-autodoc-typehints==2.0.0
ruff==0.3.3
typeguard==4.1.5
ruff==0.4.10
typeguard==4.3.0

0 comments on commit 1061674

Please sign in to comment.