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:
parent
333cdde312
commit
c8934a31b3
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user