mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-04 12:48:00 +00:00
regression_test: Check if user is using anaconda, if so, install lanforge-scripts appropriately
if the user is not using any virtual environment, install from pip using --user flag Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -107,12 +107,13 @@ PYTHON_ENVIRONMENT=$(which python3)
|
|||||||
git pull --rebase
|
git pull --rebase
|
||||||
|
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
if [ -d "/home/lanforge/lanforge_env" ]
|
if [ -d "/home/lanforge/lanforge_env" ]; then
|
||||||
then
|
|
||||||
source /home/lanforge/lanforge_env/bin/activate
|
source /home/lanforge/lanforge_env/bin/activate
|
||||||
pip3 install --upgrade lanforge-scripts
|
pip3 install --upgrade lanforge-scripts
|
||||||
|
elif [ -d "/home/lanforge/anaconda3" ]; then
|
||||||
|
pip3 install --upgrade lanforge-scripts
|
||||||
else
|
else
|
||||||
pip3 install --user -r ../requirements.txt --upgrade
|
pip3 install --user lanforge_scripts --upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ${#SSID_USED} -eq 0 ]]; then #Network credentials
|
if [[ ${#SSID_USED} -eq 0 ]]; then #Network credentials
|
||||||
|
|||||||
Reference in New Issue
Block a user