Mercurial > hg > Members > aka > jupyter_CbC_kernel
changeset 56:161ad9354cbd
Merge pull request #21 from ericjperry/master
Update install.sh to support using a different tag and repo
committer: GitHub <noreply@github.com>
author | Brendan Rius <brendan.rius@gmail.com> |
---|---|
date | Fri, 09 Jun 2017 16:32:31 +0200 |
parents | 4a03cede4763 (current diff) 94feb0290715 (diff) |
children | 308a0eaa4e49 |
files | |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/install.sh Thu Apr 13 11:29:48 2017 +0200 +++ b/install.sh Fri Jun 09 16:32:31 2017 +0200 @@ -7,8 +7,8 @@ echo " | | __/ | " echo " |_| |___/ " - -repository="https://github.com/brendan-rius/jupyter-c-kernel.git" +tag_name="$1" +repository="${2:-https://github.com/brendan-rius/jupyter-c-kernel.git}" repo_name="jupyter-c-kernel" set -x @@ -17,8 +17,12 @@ pip install $repo_name; echo "Done. " echo ":: Cloning Jupyter C-kernel... " git clone $repository $repo_name; echo "Done. " +cd $repo_name +if [ ! -z "$tag_name" ]; then + echo ":: Using tag $tag_name" + git checkout "$tag_name"; echo "Done." +fi echo ":: Installing kernel specification" -cd $repo_name jupyter-kernelspec install c_spec/ ; echo "Done." echo ":: Removing repository" cd ..