#!/bin/bash -e # default is just pip, but on things like arch where python 3 is default, it's pip2 PIP="pip" # we need pip to install python stuff # build for building qiradb and stuff for flask like gevent if [ $(which apt-get) ]; then echo "installing apt packages" sudo apt-get install build-essential python-dev python-pip debootstrap elif [ $(which pacman) ]; then echo "installing pip" sudo pacman -S base-devel python2-pip PIP="pip2" elif [ $(which yum) ]; then sudo yum install python-pip python-devel gcc gcc-c++ fi if [ $(qemu/qira-i386 > /dev/null; echo $?) == 1 ]; then echo "QIRA QEMU appears to run okay" else echo "building QEMU" ./qemu_build.sh fi echo "installing pip packages" sudo $PIP install html flask-socketio pillow pyelftools socketIO-client ./qiradb echo "making symlink" sudo ln -sf $(pwd)/qira /usr/local/bin/qira if [ -f web/qira.html ]; then echo "trunk detected" if [ ! -d ~/.meteor ]; then echo "installing meteor" sudo apt-get install curl curl https://install.meteor.com | /bin/sh ~/.meteor/tools/latest/bin/npm install -g meteorite fi fi