diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2021-12-29 21:31:42 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-12-30 00:54:14 -0500 |
| commit | 3304a38496a52052ae9d58ed2459c7deb18ca703 (patch) | |
| tree | b1a165dcbe058522d452ac7d6bcf0cd74762a6fa /.github | |
| parent | 269337ceb26c8fd1ca2680ee7db9e82fdbf6b25c (diff) | |
| download | meson-3304a38496a52052ae9d58ed2459c7deb18ca703.tar.gz | |
cygwin: fix broken python versions
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.
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cygwin.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 9dd1355a6..e5a1bd5ff 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -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 |
