TRY TO CORRECT ERROR WITH PYTHON ENV DURING INSTALL
This commit is contained in:
parent
8eb67e2a3a
commit
3cf1422eac
|
@ -124,7 +124,7 @@ def createTmpDunikey():
|
||||||
|
|
||||||
key = SigningKey.from_credentials(getpass.getpass("Identifiant: "), getpass.getpass("Mot de passe: "), None)
|
key = SigningKey.from_credentials(getpass.getpass("Identifiant: "), getpass.getpass("Mot de passe: "), None)
|
||||||
key.save_pubsec_file(keyPath)
|
key.save_pubsec_file(keyPath)
|
||||||
|
|
||||||
return keyPath
|
return keyPath
|
||||||
|
|
||||||
# Check if we need dunikey
|
# Check if we need dunikey
|
||||||
|
|
|
@ -7,3 +7,4 @@ python-dotenv
|
||||||
gql==3.0.0a5
|
gql==3.0.0a5
|
||||||
#gql==2.0
|
#gql==2.0
|
||||||
requests
|
requests
|
||||||
|
websockets==10.0
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
for i in gcc python3-pip python3-setuptools libpq-dev python3-dev python3-wheel; do
|
for i in gcc python3-pip python3-setuptools libpq-dev python3-dev python3-wheel python3-duniterpy python3-termcolor ; 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
|
||||||
j=1
|
j=1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
pip3 install -r requirements.txt
|
~/.venvs/astro/bin/python -m pip install -r requirements.txt
|
||||||
chmod u+x jaklis.py
|
|
||||||
|
sed "s~/usr/bin/env python3~$HOME/.venvs/astro/bin/python~g" jaklis.py > ~/.local/bin/
|
||||||
|
chmod u+x ~/.local/bin/jaklis.py
|
||||||
|
|
Loading…
Reference in New Issue