Skip to content

Commit

Permalink
cygwin: fix broken python versions
Browse files Browse the repository at this point in the history
multiple versions of python are packaged by cygwin, and the default
python is auto-selected as the latest one via a Debian-like alternatives
system.

This recently broke because dblatex is built against 3.9, causing it to
be installed too and resulting in multiple (inconsistent) versions of
python being installed, and `python3` pointing to the one we don't have
devel packages for and isn't even the default version.

Fix this by pointing back to the intended python.
  • Loading branch information
eli-schwartz committed Dec 30, 2021
1 parent 269337c commit 3304a38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ jobs:
vala
zlib-devel
- name: workaround wrong python version
run: |
export PATH=/usr/sbin:/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
update-alternatives --verbose --set python /usr/bin/python3.8
update-alternatives --verbose --set python3 /usr/bin/python3.8
shell: C:\cygwin\bin\bash.exe --noprofile --norc -o igncr -eo pipefail '{0}'

- name: Run pip
run: |
export PATH=/usr/bin:/usr/local/bin:$(cygpath ${SYSTEMROOT})/system32
Expand Down

0 comments on commit 3304a38

Please sign in to comment.