~mozillateam/firefox/firefox.xenial

« back to all changes in this revision

Viewing changes to debian/tests/virtualenv-wrapper

  • Committer: Olivier Tilloy
  • Date: 2021-02-03 16:28:51 UTC
  • Revision ID: olivier.tilloy@canonical.com-20210203162851-eyyscwdkje1gzm1g
* Ensure the version of pip used in the virtualenv wrapper is compatible with Python 3.5 (pip 21.0 dropped support for it, see https://github.com/pypa/pip/pull/9189) (LP: #1914450)
  - debian/tests/control
  - debian/tests/virtualenv-wrapper

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# (https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1840276)
6
6
 
7
7
tempdir=`mktemp -d`
8
 
virtualenv -p python3 --system-site-packages $tempdir
 
8
wget -P $tempdir https://bootstrap.pypa.io/3.5/get-pip.py
 
9
virtualenv -p python3 --no-pip --system-site-packages $tempdir
9
10
source $tempdir/bin/activate
 
11
python3 $tempdir/get-pip.py
10
12
pip3 install selenium
11
13
exec "$@"
12
14
rm -rf $tempdir