forked from STI/Astroport.ONE
update
This commit is contained in:
parent
e306b8ba1d
commit
6aa2ad05b9
|
@ -1,10 +1,8 @@
|
||||||
wheel
|
wheel
|
||||||
base58
|
base58
|
||||||
pybase64
|
pybase64
|
||||||
duniterpy==0.62.0
|
duniterpy
|
||||||
termcolor
|
termcolor
|
||||||
python-dotenv
|
python-dotenv
|
||||||
gql==3.0.0a5
|
gql
|
||||||
#gql==2.0
|
|
||||||
requests
|
requests
|
||||||
websockets==10.0
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
MY_PATH="`dirname \"$0\"`" # relative
|
|
||||||
MY_PATH="`( cd \"$MY_PATH\" && pwd )`" # absolutized and normalized
|
|
||||||
|
|
||||||
for i in gcc python3-pip python3-setuptools libpq-dev python3-dev python3-wheel python3-duniterpy python3-termcolor ; do
|
hasError=0
|
||||||
|
|
||||||
|
for i in gcc python3-pip python3-setuptools libpq-dev python3-dev python3-wheel; do
|
||||||
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
if [ $(dpkg-query -W -f='${Status}' $i 2>/dev/null | grep -c "ok installed") -eq 0 ]; then
|
||||||
[[ ! $j ]] && sudo apt update
|
[[ ! $j ]] && sudo apt update
|
||||||
sudo apt install -y $i
|
sudo apt install -y $i
|
||||||
|
@ -10,11 +10,12 @@ for i in gcc python3-pip python3-setuptools libpq-dev python3-dev python3-wheel
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
python -m pip install -r requirements.txt
|
pip3 install -r requirements.txt || hasError=1
|
||||||
|
chmod u+x jaklis.py
|
||||||
|
sudo ln -sf $(realpath jaklis.py) /usr/local/bin/jaklis || hasError=1
|
||||||
|
|
||||||
## INSTALL SYSTEM WIDE
|
if [[ hasError -eq 0 ]]; then
|
||||||
mkdir -p ~/.local/bin/
|
echo "Setup done. You can use 'jaklis' command, try it."
|
||||||
|
else
|
||||||
cp ${MY_PATH}/jaklis.py ~/.local/bin/jaklis
|
echo "An error has occurred"
|
||||||
cp ${MY_PATH}/.env ~/.local/bin/
|
fi
|
||||||
chmod u+x ~/.local/bin/jaklis
|
|
||||||
|
|
Loading…
Reference in New Issue