Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ff5d48

Browse files
committed
ci: Limit pycairo to a version that works on old Ubuntu.
This was ignored on Travis for some time.
1 parent d07b060 commit 6ff5d48

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/tests.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,18 +113,21 @@ jobs:
113113
# (sometimes, the install appears to be successful but shared
114114
# libraries cannot be loaded at runtime, so an actual import is a
115115
# better check).
116-
117-
# PyGObject, pycairo, and cariocffi do not install on OSX 10.12
118-
119-
# There are not functioning wheels available for OSX 10.12 (as of
120-
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+)
121-
# or pyside2 (the latest version (5.13.2) with 10.12 wheels has a
122-
# fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
123116
if [[ "${{ runner.os }}" != 'macOS' ]]; then
124-
python -mpip install --upgrade pycairo 'cairocffi>=0.8' PyGObject &&
117+
# PyGObject, pycairo, and cariocffi do not install on OSX 10.12;
118+
# pycairo 1.20+ requires a new version of Cairo, unavailable on
119+
# Ubuntu 16.04, so PyGObject must be installed without build
120+
# isolation in order to pick up the lower pre-installed version.
121+
python -mpip install --upgrade 'pycairo<1.20.0' 'cairocffi>=0.8' &&
122+
python -mpip install --upgrade --no-build-isolation PyGObject &&
125123
python -c 'import gi; gi.require_version("Gtk", "3.0"); from gi.repository import Gtk' &&
126124
echo 'PyGObject is available' ||
127125
echo 'PyGObject is not available'
126+
127+
# There are no functioning wheels available for OSX 10.12 (as of
128+
# Sept 2020) for either pyqt5 (there are only wheels for 10.13+) or
129+
# pyside2 (the latest version (5.13.2) with 10.12 wheels has a
130+
# fatal to us bug, it was fixed in 5.14.0 which has 10.13 wheels)
128131
python -mpip install --upgrade pyqt5 &&
129132
python -c 'import PyQt5.QtCore' &&
130133
echo 'PyQt5 is available' ||

0 commit comments

Comments
 (0)