Add setup.sh

This commit is contained in:
poka 2020-11-18 07:59:11 +01:00
parent b21179c5a1
commit de22503bce
2 changed files with 14 additions and 0 deletions

View File

@ -1,2 +1,5 @@
wheel
base58
pybase64
duniterpy
termcolor

11
setup.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
for i in gcc python3-pip python3-setuptools libpq-dev python3-dev; do
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
sudo apt install -y $i
fi
done
pip3 install -r requirements.txt
chmod u+x dialog.py