mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +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
|
||||
|
||||
python3 -m pip install --upgrade pip
|
||||
if [ -d "/home/lanforge/lanforge_env" ]
|
||||
then
|
||||
if [ -d "/home/lanforge/lanforge_env" ]; then
|
||||
source /home/lanforge/lanforge_env/bin/activate
|
||||
pip3 install --upgrade lanforge-scripts
|
||||
elif [ -d "/home/lanforge/anaconda3" ]; then
|
||||
pip3 install --upgrade lanforge-scripts
|
||||
else
|
||||
pip3 install --user -r ../requirements.txt --upgrade
|
||||
pip3 install --user lanforge_scripts --upgrade
|
||||
fi
|
||||
|
||||
if [[ ${#SSID_USED} -eq 0 ]]; then #Network credentials
|
||||
|
||||
Reference in New Issue
Block a user