mirror of
https://github.com/XaverKlemenschits/jupyter-c-kernel.git
synced 2025-04-14 10:26:09 +00:00
Merge pull request #21 from ericjperry/master
Update install.sh to support using a different tag and repo
This commit is contained in:
commit
09246c16e8
10
install.sh
10
install.sh
@ -7,8 +7,8 @@ echo "\____/ \__._| .__/ \__. |\__\___|_| \____/ \_| \_/\___|_| |_| |_|\___
|
||||
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 @@ echo ":: Installing python module C kernel."
|
||||
pip install $repo_name; echo "Done. "
|
||||
echo ":: Cloning Jupyter C-kernel... "
|
||||
git clone $repository $repo_name; echo "Done. "
|
||||
echo ":: Installing kernel specification"
|
||||
cd $repo_name
|
||||
if [ ! -z "$tag_name" ]; then
|
||||
echo ":: Using tag $tag_name"
|
||||
git checkout "$tag_name"; echo "Done."
|
||||
fi
|
||||
echo ":: Installing kernel specification"
|
||||
jupyter-kernelspec install c_spec/ ; echo "Done."
|
||||
echo ":: Removing repository"
|
||||
cd ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user