@@ -30,14 +30,22 @@ jobs:
30
30
- name : Install Cygwin
31
31
uses : cygwin/cygwin-install-action@v4
32
32
with :
33
- packages : python39 git
33
+ packages : python39 python39-pip python39-virtualenv git
34
34
add-to-path : false # No need to change $PATH outside the Cygwin environment.
35
35
36
36
- name : Arrange for verbose output
37
37
run : |
38
38
# Arrange for verbose output but without shell environment setup details.
39
39
echo 'set -x' >~/.bash_profile
40
40
41
+ - name : Add PyPI hosts file entry # NOTE: Actually edits the Windows hosts file.
42
+ run : |
43
+ echo '199.232.96.223 files.pythonhosted.org' >>/etc/hosts
44
+
45
+ - name : Show hosts file
46
+ run : |
47
+ cat /etc/hosts
48
+
41
49
- name : Special configuration for Cygwin git
42
50
run : |
43
51
git config --global --add safe.directory "$(pwd)"
@@ -55,14 +63,19 @@ jobs:
55
63
# and cause subsequent tests to fail
56
64
cat test/fixtures/.gitconfig >> ~/.gitconfig
57
65
66
+ - name : Ensure the "pip" command is available
67
+ run : |
68
+ # This is used unless, and before, an updated pip is installed.
69
+ ln -s pip3 /usr/bin/pip
70
+
58
71
- name : Update PyPA packages
59
72
run : |
60
73
# Get the latest pip, wheel, and prior to Python 3.12, setuptools.
61
- python -m pip install -U pip $(python -m pip freeze --all | grep -ow ^setuptools) wheel
74
+ python -m pip install -U pip $(pip freeze --all | grep -ow ^setuptools) wheel
62
75
63
76
- name : Install project and test dependencies
64
77
run : |
65
- python -m pip install ".[test]"
78
+ pip install ".[test]"
66
79
67
80
- name : Show version and platform information
68
81
run : |
0 commit comments