Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita329b63

Browse files
committed
Try installing GTK from wingtk project
1 parent1c351b6 commita329b63

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

‎azure-pipelines.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,26 @@ stages:
7878
python -m pip install -r requirements/testing/all.txt -r requirements/testing/extra.txt
7979
displayName: 'Install dependencies with pip'
8080
81-
-bash:|
81+
-pwsh:|
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+
-pwsh:|
8294
# GUI toolkits are pip-installable only for some versions of Python so don't fail if we can't install
8395
# them. Make it easier to check whether the install was successful by trying to import the toolkit
8496
# (sometimes, the install appears to be successful but shared libraries cannot be loaded at runtime, so
8597
# 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) &&
88101
(
89102
python -c 'import gi; gi.require_version("Gtk", "4.0"); from gi.repository import Gtk' &&
90103
echo 'PyGObject 4 is available' || echo 'PyGObject 4 is not available'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp