-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated readme for smoldyn mac instructions and added intel smoldyn i…
…nstaller
- Loading branch information
1 parent
7e44041
commit d6a50e5
Showing
2 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash | ||
|
||
# The following script serves as a utility for installing this repository with the Smoldyn requirement on a Intel Mac | ||
|
||
set -e | ||
|
||
# set installation parameters | ||
dist_url=https://www.smoldyn.org/smoldyn-2.72-mac-Intel.tgz | ||
tarball_name=smoldyn-2.72-mac.tgz | ||
dist_dir=${tarball_name%.tgz} | ||
|
||
# uninstall existing version | ||
pip uninstall smoldyn || return | ||
|
||
# download the appropriate distribution from smoldyn | ||
wget $dist_url | ||
|
||
# extract the source from the tarball | ||
tar -xzvf $tarball_name | ||
|
||
# delete the tarball | ||
rm $tarball_name | ||
|
||
# install smoldyn from the source | ||
cd $dist_dir | ||
sudo -H ./install.sh | ||
|
||
# install the repo | ||
cd .. | ||
pip install -e . | ||
|
||
|