changeset 29:ee3ac764f5f0

Merge pull request #6 from ryukinix/install-sh Add alternative installation using wget and sh
author Brendan Rius <brendan.rius@gmail.com>
date Fri, 29 Apr 2016 10:41:04 +0100
parents f257b2d1f95b (current diff) 47c2bcc86359 (diff)
children ccfb2b273434
files README.md c_kernel/__init__.py c_kernel/__main__.py c_kernel/kernel.py jupyter_c_kernel/__init__.py jupyter_c_kernel/__main__.py jupyter_c_kernel/kernel.py
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README.md	Fri Apr 29 10:35:38 2016 +0100
+++ b/README.md	Fri Apr 29 10:41:04 2016 +0100
@@ -13,12 +13,18 @@
   * jupyter
   * python
   * pip
+
+### Step-by-step:
  * `git clone git@github.com:brendan-rius/jupyter-c-kernel.git`
  * `pip install jupyter-c-kernel`
  * `cd jupyter-c-kernel`
  * `jupyter-kernelspec install c_spec/`
  * `jupyter-notebook`. Enjoy!
 
+### Easy installation for Unix user:
+
+ * `wget  -O - https://raw.githubusercontent.com/brendan-rius/jupyter-c-kernel/master/install.sh | sh` 
+
 ## Example of notebook
 
 ![Example of notebook](example-notebook.png?raw=true "Example of notebook")
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/install.sh	Fri Apr 29 10:41:04 2016 +0100
@@ -0,0 +1,21 @@
+echo "   ___                   _              _____   _   __                     _ "
+echo "  |_  |                 | |            /  __ \ | | / /                    | |"
+echo "    | |_   _ _ __  _   _| |_ ___ _ __  | /  \/ | |/ /  ___ _ __ _ __   ___| |"
+echo "    | | | | | '_ \| | | | __/ _ \ '__| | |     |    \ / _ \ '__| '_ \ / _ \ |"
+echo "/\__/ / |_| | |_) | |_| | ||  __/ |    | \__/\ | |\  \  __/ |  | | | |  __/ |"
+echo "\____/ \__._| .__/ \__. |\__\___|_|     \____/ \_| \_/\___|_|  |_| |_|\___|_|"
+echo "            | |     __/ |                                                    "
+echo "            |_|    |___/                                                     "
+
+
+repo_name="jupyter-c-kernel"
+repository=git@github.com:brendan-rius/jupyter-c-kernel.git
+
+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."
+echo "Completed! Installation successful. You can type jupyter-notebook and be happy"