-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-dev.sh
executable file
·27 lines (22 loc) · 1.62 KB
/
install-dev.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
OPTS=`getopt -o n --long no-model -- "$@"`
if [[ $? != 0 ]] ; then echo "Failed parsing options." >&2 ; exit 1 ; fi
eval set -- "${OPTS}"
apt-get update
apt-get -y install debhelper python3 python3-all-dev libglib2.0-dev libcairo2-dev libgtk2.0-dev pkg-config cmake && \
apt-get -y install dpkg python3-minimal ${misc:Pre-Depends} && \
apt-get -y install ${python3:Depends} ${misc:Depends} flite python3-xlib portaudio19-dev python3-all-dev flac libnotify-bin python3-lxml python3-pyaudio python3-httplib2 python3-pip python3-setuptools python3-wheel python-opencv libavcodec-dev libgstreamer1.0-dev gstreamer1.0-plugins-good gstreamer1.0-tools subversion libatlas-base-dev automake autoconf libtool libgtk2.0-0 gir1.2-gtk-3.0 && \
apt-get -y install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev libtiff5-dev libpng12-dev libavformat-dev libswscale-dev libv4l-dev libgtk-3-dev libavformat-dev openexr libopenexr-dev libqt4-dev libgstreamer0.10-0-dbg libgstreamer0.10-0 libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev
apt-get -y install figlet boxes lolcat
pip3 install -e .
#DEBHELPER#
RED='\033[0;31m'
GREEN='\033[0;32m'
NC='\033[0m' # No Color
IMLINE_DIR=/usr/share/imline
if [[ ! -d "$IMLINE_DIR" ]]; then
mkdir ${IMLINE_DIR}
fi
pip3 install --upgrade tinydb==3.9.0.post1 numpy multipledispatch psutil gitpython imutils opencv-python opencv-contrib-python google_images_download stasm && \
pip3 install --upgrade flake8 sphinx sphinx_rtd_theme recommonmark m2r pytest docutils && \
echo -e "\n\n${GREEN}imline is successfully installed to your computer.${NC}\n"