comparison install.sh @ 43:4ccc6146fd7e

Improve install.sh
author Brendan Rius <brendan@omixy.com>
date Wed, 08 Jun 2016 10:41:43 +0100
parents 47c2bcc86359
children d3fdb29f3fdc
comparison
equal deleted inserted replaced
42:778218c42d18 43:4ccc6146fd7e
6 echo "\____/ \__._| .__/ \__. |\__\___|_| \____/ \_| \_/\___|_| |_| |_|\___|_|" 6 echo "\____/ \__._| .__/ \__. |\__\___|_| \____/ \_| \_/\___|_| |_| |_|\___|_|"
7 echo " | | __/ | " 7 echo " | | __/ | "
8 echo " |_| |___/ " 8 echo " |_| |___/ "
9 9
10 10
11 repository="https://github.com/brendan-rius/jupyter-c-kernel.git"
11 repo_name="jupyter-c-kernel" 12 repo_name="jupyter-c-kernel"
12 repository=git@github.com:brendan-rius/jupyter-c-kernel.git
13 13
14 set -x
15
16 echo ":: Installing python module C kernel."
17 pip install $repo_name; echo "Done. "
14 echo ":: Cloning Jupyter C-kernel... " 18 echo ":: Cloning Jupyter C-kernel... "
15 git clone $repository $repo_name; echo "Done. " 19 git clone $repository $repo_name; echo "Done. "
16 echo ":: Installing python module C kernel."
17 sudo -H pip install $repo_name; echo "Done. "
18 echo ":: Installing kernel specification" 20 echo ":: Installing kernel specification"
19 cd $repo_name 21 cd $repo_name
20 sudo jupyter-kernelspec install c_spec/ ; echo "Done." 22 jupyter-kernelspec install c_spec/ ; echo "Done."
23 echo ":: Removing repository"
24 cd ..
25 rm -rf jupyter-c-kernel/
21 echo "Completed! Installation successful. You can type jupyter-notebook and be happy" 26 echo "Completed! Installation successful. You can type jupyter-notebook and be happy"