if [[ -f ~/lf-env.sh ]]; then
source ~/lf-env.sh
lf-activate-venv --python "$python" lftools
+ # Save the virtualenv path
+ echo "$lf_venv" > "/tmp/.os_lf_venv"
elif [[ -d /opt/pyenv ]]; then
- echo "---> Setting up pyenv"
+ echo "Setup up pyenv"
export PYENV_ROOT="/opt/pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
pyenv versions
fi
python3 -m pip install --quiet --upgrade pip
- python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools
+ # TODO: temporarily pinning setuptools to avoid plugin version format issues
+ # https://github.com/pypa/setuptools/issues/3772#issuecomment-1384342813
+ python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools==65.7.0
python3 -m pip install --quiet --no-warn-script-location --upgrade lftools[openstack]
python3 -m pip install --quiet --no-warn-script-location --upgrade \
--upgrade-strategy eager -r "$requirements_file"