File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Original file line number Diff line number Diff line change @@ -78,13 +78,26 @@ stages:
78
78
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
79
79
displayName: 'Install dependencies with pip'
80
80
81
- - bash : |
81
+ - powershell : |
82
+ Invoke-WebRequest `
83
+ https://github.com/wingtk/gvsbuild/releases/download/2025.5.0/GTK4_Gvsbuild_2025.5.0_x64.zip `
84
+ -OutFile $(Agent.BuildDirectory)\GTK4.zip
85
+ Write-Host "##vso[task.prependpath]$(Agent.BuildDirectory)\gtk4\bin"
86
+ displayName: 'Download system dependencies'
87
+
88
+ - task : ExtractFiles@1
89
+ inputs :
90
+ archiveFilePatterns : ' $(Agent.BuildDirectory)\GTK4.zip'
91
+ destinationFolder : ' $(Agent.BuildDirectory)\gtk4'
92
+
93
+ - powershell : |
82
94
# GUI toolkits are pip-installable only for some versions of Python so don't fail if we can't install
83
95
# them. Make it easier to check whether the install was successful by trying to import the toolkit
84
96
# (sometimes, the install appears to be successful but shared libraries cannot be loaded at runtime, so
85
97
# an actual import is a better check).
86
- python -m pip install --upgrade pycairo cairocffi>=0.8
87
- python -m pip install --upgrade PyGObject &&
98
+ python -m pip install (Resolve-Path $(Agent.BuildDirectory)\gtk4\wheels\pycairo*.whl)
99
+ python -m pip install cairocffi>=0.8
100
+ python -m pip install (Resolve-Path $(Agent.BuildDirectory)\gtk4\wheels\PyGObject*.whl) &&
88
101
(
89
102
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
90
103
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'
You can’t perform that action at this time.
0 commit comments