From 51f152dbd04c34e4ef13d3b84b05f033a88d2804 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 1 Oct 2021 17:37:23 +0200 Subject: [PATCH] Refactor pip install command --- install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install b/install index 9e60dce93..075b4f879 100755 --- a/install +++ b/install @@ -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..."