By default virtualenv uses python2.7 which is going
to be EOL soon.
Change-Id: Ic06458f963deb276321299721c7a31291cf41bbd
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
# For example replace ${GERRIT_REFSPEC} with 'refs/changes/81/15881/2'
git fetch "https://gerrit.linuxfoundation.org/infra/releng/lftools" ${GERRIT_REFSPEC} && git cherry-pick --ff --keep-redundant-commits FETCH_HEAD
git log --pretty=format:"%h%x09%an%x09%s" -n5
- virtualenv --quiet "/tmp/lftools-env"
+ virtualenv --quiet -p $(which python3) "/tmp/lftools-env"
set +u
source "/tmp/lftools-env/bin/activate"
set -u
- pip install --quiet -r requirements.txt -e .
+ pip3 install --quiet -r requirements.txt -e .
cd ${WORKSPACE}
Example code for global-jjb changes: