Skip to content

Commit 3078849

Browse files
authored
bot: Use Mercurial with Python 3 (mozilla#365)
Fixes mozilla#332
1 parent e24fe78 commit 3078849

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

bot/ci/bootstrap.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@ MERCURIAL_VERSION="5.2"
44
VERSION_CONTROL_TOOLS_REV="102106f53cb2"
55

66
apt-get update
7-
apt-get install --no-install-recommends -y gcc curl bzip2 python2-minimal python-bz2file python-dev
7+
apt-get install --no-install-recommends -y gcc curl bzip2 python-dev
88

9-
# Setup mercurial from its own website, without install pip2 which has a lot of dependencies
10-
curl -L https://www.mercurial-scm.org/release/mercurial-$MERCURIAL_VERSION.tar.gz | tar -C /opt -xvz
11-
cd /opt/mercurial-$MERCURIAL_VERSION
12-
python2 setup.py install
9+
pip install --disable-pip-version-check --quiet --no-cache-dir mercurial==$MERCURIAL_VERSION
1310

1411
# Setup grcov
1512
curl -L https://github.com/mozilla/grcov/releases/download/$GRCOV_VERSION/grcov-linux-x86_64.tar.bz2 | tar -C /usr/bin -xjv
@@ -20,7 +17,7 @@ hg clone -r $VERSION_CONTROL_TOOLS_REV https://hg.mozilla.org/hgcustom/version-c
2017
ln -s /src/bot/ci/hgrc $HOME/.hgrc
2118

2219
# Cleanup
23-
apt-get purge -y gcc curl python-dev
20+
apt-get purge -y gcc curl bzip2 python-dev
2421
apt-get autoremove -y
2522
rm -rf /var/lib/apt/lists/*
2623
rm -rf /src/version-control-tools/.hg /src/version-control-tools/ansible /src/version-control-tools/docs /src/version-control-tools/testing

0 commit comments

Comments
 (0)