Skip to content

Commit 0a260de

Browse files
authored
Merge pull request #20717 from mozilla/FXA-13862
fix(ci): install python3-venv before recreating glean_parser venv
2 parents 2f0bdd7 + 6bf0d72 commit 0a260de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,10 @@ commands:
259259
- run:
260260
name: Recreate venv with glean_parser 19
261261
command: |
262+
# Img doesn't ship with venv; only install if missing.
263+
if ! python3 -c "import ensurepip" 2>/dev/null; then
264+
sudo apt-get update && sudo apt-get install -y python3-venv
265+
fi
262266
rm -rf .venv
263267
python3 -m venv .venv
264268
.venv/bin/pip install 'glean_parser~=19.0'

0 commit comments

Comments
 (0)