Skip to content

Commit 3e50d09

Browse files
committed
Force virtualenv version
Force the virtualenv version to be 20.11 or less. The 20.12 version is failing for python 2 right now.
1 parent cdea582 commit 3e50d09

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

python-setup/install_tools.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ py -3 -m pip install --user --upgrade pip setuptools wheel
55

66
# virtualenv is a bit nicer for setting up virtual environment, since it will provide up-to-date versions of
77
# pip/setuptools/wheel which basic `python3 -m venv venv` won't
8-
py -2 -m pip install --user virtualenv
9-
py -3 -m pip install --user virtualenv
8+
py -2 -m pip install --user 'virtualenv<20.11'
9+
py -3 -m pip install --user 'virtualenv<20.11'
1010

1111
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711)
1212
py -3 -m pip install --user poetry!=1.0.10
13-
py -3 -m pip install --user pipenv
13+
py -3 -m pip install --user pipenv

python-setup/install_tools.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ python3 -m pip install --user --upgrade pip setuptools wheel
1515

1616
# virtualenv is a bit nicer for setting up virtual environment, since it will provide up-to-date versions of
1717
# pip/setuptools/wheel which basic `python3 -m venv venv` won't
18-
python3 -m pip install --user virtualenv
18+
python3 -m pip install --user 'virtualenv<20.11'
1919

2020
# We install poetry with pip instead of the recommended way, since the recommended way
2121
# caused some problem since `poetry run` gives output like:
@@ -35,5 +35,5 @@ if command -v python2 &> /dev/null; then
3535

3636
python2 -m pip install --user --upgrade pip setuptools wheel
3737

38-
python2 -m pip install --user virtualenv
38+
python2 -m pip install --user 'virtualenv<20.11'
3939
fi

0 commit comments

Comments
 (0)