Refactor pip install command

This commit is contained in:
jo 2021-10-01 17:37:23 +02:00
parent 1db244114c
commit 51f152dbd0
1 changed files with 3 additions and 2 deletions

View File

@ -995,12 +995,13 @@ loud "-----------------------------------------------------"
python_version=$($python_bin --version 2>&1 | awk '{ print $2 }')
verbose "Detected Python version: $python_version"
pip_cmd="$python_bin -m pip"
verbose "\n * Installing necessary python services..."
loudCmd "$python_bin -mpip install setuptools --upgrade"
loudCmd "$pip_cmd install setuptools --upgrade"
# Required here because PyGObject requires it, but it is installed after PyGObject
# when pip parses the setup.py file in airtime_analyzer
loudCmd "$python_bin -mpip install pycairo==1.19.1"
loudCmd "$pip_cmd install pycairo==1.19.1"
verbose "...Done"
verbose "\n * Creating /run/airtime..."