changeset 43:4ccc6146fd7e

Improve install.sh
author Brendan Rius <brendan@omixy.com>
date Wed, 08 Jun 2016 10:41:43 +0100
parents 778218c42d18
children cd22245b4b16
files install.sh
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/install.sh	Wed Jun 08 10:34:02 2016 +0100
+++ b/install.sh	Wed Jun 08 10:41:43 2016 +0100
@@ -8,14 +8,19 @@
 echo "            |_|    |___/                                                     "
 
 
+repository="https://github.com/brendan-rius/jupyter-c-kernel.git"
 repo_name="jupyter-c-kernel"
-repository=git@github.com:brendan-rius/jupyter-c-kernel.git
+
+set -x
 
+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 python module C kernel."
-sudo -H pip install $repo_name; echo "Done. "
 echo ":: Installing kernel specification"
 cd $repo_name
-sudo jupyter-kernelspec install c_spec/ ; echo "Done."
+jupyter-kernelspec install c_spec/ ; echo "Done."
+echo ":: Removing repository"
+cd ..
+rm -rf jupyter-c-kernel/
 echo "Completed! Installation successful. You can type jupyter-notebook and be happy"