TRY TO CORRECT ERROR WITH PYTHON ENV DURING INSTALL

This commit is contained in:
fred 2023-11-10 05:08:11 +01:00
parent 8eb67e2a3a
commit 3cf1422eac
3 changed files with 12 additions and 9 deletions

View File

@ -124,7 +124,7 @@ def createTmpDunikey():
key = SigningKey.from_credentials(getpass.getpass("Identifiant: "), getpass.getpass("Mot de passe: "), None)
key.save_pubsec_file(keyPath)
return keyPath
# Check if we need dunikey

View File

@ -7,3 +7,4 @@ python-dotenv
gql==3.0.0a5
#gql==2.0
requests
websockets==10.0

View File

@ -1,12 +1,14 @@
#!/bin/bash
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
[[ ! $j ]] && sudo apt update
sudo apt install -y $i
j=1
fi
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
[[ ! $j ]] && sudo apt update
sudo apt install -y $i
j=1
fi
done
pip3 install -r requirements.txt
chmod u+x jaklis.py
~/.venvs/astro/bin/python -m pip install -r requirements.txt
sed "s~/usr/bin/env python3~$HOME/.venvs/astro/bin/python~g" jaklis.py > ~/.local/bin/
chmod u+x ~/.local/bin/jaklis.py