Skip to content

Commit 731f165

Browse files
committed
Update pipelines for PyGObject 3.51+
1 parent 4b90cc8 commit 731f165

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/python-package.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,24 @@ jobs:
6060
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version != '2.7' }}
6161
run: |
6262
sudo apt update
63-
sudo apt install python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-secret-1 gnome-keyring
63+
#sudo apt install python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-secret-1 gnome-keyring
64+
65+
# girepository-2.0 becomes necessary since PyGobject 3.51 https://pygobject.gnome.org/changelog.html#pre-release
66+
# Copilot said pkg-config and libgirepository1.0-dev which "should provide girepository-2.0"
67+
# But it doesn't work for me.
68+
#sudo apt install -y pkg-config libgirepository1.0-dev
69+
70+
# Derived from https://pygobject.gnome.org/getting_started.html#ubuntu-logo-ubuntu-debian-logo-debian
71+
# libgirepository-2.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0
72+
# and the old setup:
73+
# python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-secret-1 gnome-keyring
74+
# I'm going with:
75+
sudo apt install -y python3-dev libgirepository2.0-dev libcairo2-dev gir1.2-secret-1 gnome-keyring
76+
77+
78+
# Install PyGObject and GTK dependencies
79+
#sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0
80+
#sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-3.0 python3-dev python3-gi-cairo girepository-2.0
6481
- name: Install Python dependencies
6582
run: |
6683
python -m pip install --upgrade pip

0 commit comments

Comments
 (0)