Skip to content

Commit e007714

Browse files
committed
Revisit installing pip in venv in separate step
The previous commit pinned the python39-pip package, but it may still be upgraded when installed automatically in the `python -m venv` step, since that step runs something like `python3.9 -Im ensurepip --upgrade --default-pip`. This replays 4605dd6 to install pip in a separate step. This differs from the solution in gitpython-developers#2007 in that this does not use the bootstrap script.
1 parent 80adc50 commit e007714

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cygwin-test.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,13 @@ jobs:
5757
5858
- name: Set up virtualenv
5959
run: |
60-
python3.9 -m venv .venv
60+
python3.9 -m venv --without-pip .venv
6161
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
6262
63+
- name: Install pip in virtualenv
64+
run: |
65+
python -m ensurepip
66+
6367
- name: Update PyPA packages
6468
run: |
6569
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.

0 commit comments

Comments
 (0)