Call pip by executing python -m pip to avoid issue with long shebang

If refstack-client is cloned to a place in the filesystem with
a pretty long path, such that the path to pip in the virtualenv
exceeds about 128 characters (with the #! in the shebang line)
then setup_env will fail because the path to the interpreter
gets truncated. This is a known issue with pip due to a kernel
limitation on the size of the shebang line.

Change-Id: Ie2cce5647960c45032c03f008501b8f87c0991cd
Closes-Bug: #1643046
This commit is contained in:
Carl Baldwin 2016-11-18 19:51:56 +00:00 committed by Henry Gessau
parent 333cdde312
commit c8934a31b3

View File

@ -150,8 +150,8 @@ python virtualenv.py ${WORKDIR}/.tempest/.venv --python="${PYPATH}"
cd ..
rm -rf virtualenv-${VENV_VERSION}
rm virtualenv-${VENV_VERSION}.tar.gz
${WORKDIR}/.venv/bin/pip install -r ${WORKDIR}/requirements.txt
${WORKDIR}/.tempest/.venv/bin/pip install -r ${WORKDIR}/.tempest/requirements.txt
${WORKDIR}/.venv/bin/python -m pip install -r ${WORKDIR}/requirements.txt
${WORKDIR}/.tempest/.venv/bin/python -m pip install -r ${WORKDIR}/.tempest/requirements.txt
# Add additional packages to find more tests by tempest
# Note: Since there are no requirements in tempest-additional-requirements.txt by default,