Created
October 24, 2017 21:09
-
-
Save rbiswas4/3f947e47d74d8a4f31567e7d1125cac4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install script from https://github.com/JohannesBuchner/pymultinest-tutorial with a few changes. | |
### Variables for locations | |
software_repo=${HOME}/soft | |
multinest_repo=https://github.com/JohannesBuchner/MultiNest | |
mnestdir=$software_repo/Multinest | |
pymnestdir=$software_repo/PyMultiNest | |
### Check if directory for multinest is already present | |
if [ -d $mnestdir ]; then | |
echo ">> Multinest repo already exists, please delete to run script" | |
exit 1 | |
fi | |
### Clone the MultiNest repository | |
echo ">> clone Multinest from $multinest_repo to $software_repo/MultiNest" | |
pushd $software_repo | |
git clone ${multinest_repo} | |
### Build multinest | |
echo ">> Building MultiNest" | |
pushd $mnestdir | |
mkdir -p build; cd build | |
cmake ../ > /dev/null && make > /dev/null | |
popd | |
### Build pymultinest | |
echo ">> clone PyMultiNest to $pymnestdir" | |
git clone https://github.com/JohannesBuchner/PyMultiNest | |
echo ">> Building PyMultiNest" | |
pushd PyMultiNest | |
python setup.py install --user | |
popd | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment