export PYENV_VERSION="3.6.4"
fi
-$pip install niet
-$pip install lftools
-$pip install lftools[nexus]
-$pip install jsonschema
+$pip install --user niet
+$pip install --user lftools
+$pip install --user lftools[nexus]
+$pip install --user jsonschema
echo "Checking votes:"
lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
# Use `python -m pip` to ensure we are using pip from user venv
python3 -m venv ~/.local
- python3 -m pip install --quiet --upgrade pip
- python3 -m pip install --quiet --no-warn-script-location --upgrade setuptools
- python3 -m pip install --quiet --no-warn-script-location --upgrade --upgrade-strategy eager -r "$requirements_file"
+ python3 -m pip install --user --quiet --upgrade pip
+ python3 -m pip install --user --quiet --no-warn-script-location --upgrade setuptools
+ python3 -m pip install --user --quiet --no-warn-script-location --upgrade --upgrade-strategy eager -r "$requirements_file"
rm -rf "$requirements_file"
touch /tmp/pre-build-complete
fi
if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then
# Install patchset lftools
- python3 -m pip install -e .
+ python3 -m pip install --user -e .
fi
echo "---> Generating docs"
if [[ $PYTHON == "python2" ]]; then
- $PYTHON -m pip install --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0
+ $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv more-itertools~=5.0.0
else
- $PYTHON -m pip install --quiet --upgrade tox tox-pyenv virtualenv
+ $PYTHON -m pip install --user --quiet --upgrade tox tox-pyenv virtualenv
fi