~/.local is NOT a Python virtualenv and should not be created as such.
Using `--user` installs python modules into
~/.local/lib/PYTHON_VERSION/site-packages
Making ~/.local a virtualenv messes with the paths in site-packages.
This reverts one of the changes from
I4b2d778f3fd81565c5dd009d50c969696faba0d2
Ref: https://www.python.org/dev/peps/pep-0370
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Ie2635b691c8cdf5718fc2617d4de41a3d5a2c347
yq
EOF
- # Use `python -m pip` to ensure we are using pip from user venv
- python3 -m venv ~/.local
+ # Use `python -m pip` to upgrade to the latest pip into user site-packages
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"