From b59493ec1ddea9efa782305071cfb4880d04ea14 Mon Sep 17 00:00:00 2001 From: manojgudi Date: Sun, 15 Sep 2013 15:08:23 +0530 Subject: Adding untested install script --- install | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 install diff --git a/install b/install new file mode 100644 index 0000000..fd62b10 --- /dev/null +++ b/install @@ -0,0 +1,40 @@ +#/bin/bash + +bold=$(tput bold) +red=$(tput setaf 1) +yel=$(tput setaf 3) +end=$(tput sgr 0) + + +echo "$bold $red Installing Dependencies $end" + +echo "$bold $yel > Installing Scilab... $end" + sudo apt-get install scilab + +echo "$bold $yel > Installing python-numpy... $end" + sudo apt-get install python-numpy + +#echo "Installing python" +echo "$bold $red Installing sciscipy $end" + ./setup.py build + +# For Debian/Ubuntu based OSes +sudo ./setup.py install --install-layout=deb + +echo "$bold $red Setting up variables $end" + s2pconf=/etc/ld.so.conf.d/sciscipy.conf + + echo "/usr/lib/scilab" >> $s2pconf + echo "/usr/lib/jvm/default-java/jre/lib/i386/native_threads" >> $s2pconf + echo "/usr/lib/jvm/default-java/jre/lib/i386/" >> $s2pconf + echo "/usr/lib/jvm-/efault-java/jre/lib/i386/server" >> $s2pconf + + env=/etc/environment + echo 'PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' >> env + echo 'SCI=/usr/share/scilab' >> env + +# Testing +echo "$bold $red Testing... $end" + CURRENT_PATH=`pwd` + export PYTHONPATH="$CURRENT_PATH/build/lib.linux-x86_64-2.7/" + python setup.py test -- cgit