diff options
author | manojgudi | 2013-09-15 15:08:23 +0530 |
---|---|---|
committer | manojgudi | 2013-09-15 15:16:35 +0530 |
commit | b59493ec1ddea9efa782305071cfb4880d04ea14 (patch) | |
tree | 1d953784a94f1b93ea7f9848cbd1382fc7b82b43 | |
parent | 43114165fb5e59c4267991f4922970c897fe2d88 (diff) | |
download | sciscipy-1.0.0-b59493ec1ddea9efa782305071cfb4880d04ea14.tar.gz sciscipy-1.0.0-b59493ec1ddea9efa782305071cfb4880d04ea14.tar.bz2 sciscipy-1.0.0-b59493ec1ddea9efa782305071cfb4880d04ea14.zip |
Adding untested install script
-rw-r--r-- | install | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -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 |