@@ -12,16 +12,15 @@ export PATH="$HOME/.local/bin:$PATH"
12
12
13
13
# Setup Python 3 dependency installation tools.
14
14
15
- # we install an older version of `setuptools` to ensure that binaries are always put
16
- # under `<venv-path>/bin`, which wouldn't always happen with the GitHub actions version
17
- # of Ubuntu 22.04. See https://github.com/github/codeql-action/issues/1249. The the next
18
- # release of `virtualenv` after v20.16.5 will include a fix for this, so we can remove
19
- # this bit of the logic again.
20
- python3 -m pip install --user --upgrade pip ' setuptools<60' wheel
15
+ python3 -m pip install --user --upgrade pip setuptools wheel
21
16
22
- # virtualenv is a bit nicer for setting up virtual environment, since it will provide up-to-date versions of
23
- # pip/setuptools/wheel which basic `python3 -m venv venv` won't
24
- python3 -m pip install --user virtualenv
17
+ # virtualenv is a bit nicer for setting up virtual environment, since it will provide
18
+ # up-to-date versions of pip/setuptools/wheel which basic `python3 -m venv venv` won't.
19
+ #
20
+ # version 20.16.5 (Python 3 only) had some problems when used together with newer
21
+ # versions of setuptools (60+) and would not always put binaries under `<venv-path>/bin`
22
+ # -- see https://github.com/github/codeql-action/issues/1249 for more details.
23
+ python3 -m pip install --user --upgrade ' virtualenv>20.16.5'
25
24
26
25
# We install poetry with pip instead of the recommended way, since the recommended way
27
26
# caused some problem since `poetry run` gives output like:
@@ -45,7 +44,7 @@ if command -v python2 >/dev/null 2>&1; then
45
44
curl --location --fail https://bootstrap.pypa.io/pip/2.7/get-pip.py | python2
46
45
fi
47
46
48
- python2 -m pip install --user --upgrade pip ' setuptools<60 ' wheel
47
+ python2 -m pip install --user --upgrade pip setuptools wheel
49
48
50
49
python2 -m pip install --user ' virtualenv!=20.12.0'
51
50
fi
0 commit comments