Skip to content

Commit 6186cc7

Browse files
committed
fix: Added fixes for the wheels builds to pass all of them
1 parent 20ec9cb commit 6186cc7

File tree

2 files changed

+30
-8
lines changed

2 files changed

+30
-8
lines changed

os_dependencies/linux_arm.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,29 @@ sudo apt-get update
77
# AWS
88
sudo apt-get install -y -q --no-install-recommends awscli
99

10+
sudo apt-get install cmake build-essential -y
11+
1012
# PyGObject needs build dependecies https://pygobject.readthedocs.io/en/latest/getting_started.html
11-
sudo apt-get install libgirepository1.0-dev libgirepository-2.0-dev gcc libcairo2-dev pkg-config python3-dev -y
13+
sudo apt-get install libgirepository1.0-dev libgirepository-2.0-dev gcc libcairo2-dev pkg-config python3-dev gir1.2-gtk-4.0 -y
14+
15+
# dbus-python needs build dependecies
16+
sudo apt-get install dbus libdbus-1-dev libdbus-glib-1-dev libdbus-1-3 -y
17+
sudo apt-get install -y --no-install-recommends dbus-tests
18+
19+
# Pillow needs libjpeg-dev
20+
sudo apt-get install libjpeg-dev libtiff5 libopenjp2-7 -y
1221

13-
# dbus-python build dependecies
14-
sudo apt-get install libtiff5 libjpeg-dev libopenjp2-7 cmake libdbus-1-dev -y
15-
sudo apt-get install -y --no-install-recommends python3-dev libdbus-glib-1-dev libgirepository1.0-dev libcairo2-dev -y
16-
sudo apt-get install -y --no-install-recommends dbus-tests -y
1722

1823
#Only ARMv7
1924
if [ "$arch" == "armv7l" ]; then
25+
# ARMv7 Debian Bullseye container needs additional gobject-introspection packages for PyGObject
26+
apt-get install -y gobject-introspection-dev libgirepository1.0-dev gir1.2-gtk-4.0
27+
2028
# cryptography needs Rust
2129
# clean the container Rust installation to be sure right interpreter is used
2230
apt remove --auto-remove --purge rust-gdb rustc libstd-rust-dev libstd-rust-1.48
2331
# install Rust dependencies
24-
apt-get install -y build-essential libssl-dev libffi-dev python3-dev pkg-config gcc musl-dev
32+
apt-get install -y libssl-dev libffi-dev gcc musl-dev
2533
# install Rust
2634
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | bash -s -- -y
2735
. $HOME/.cargo/env

os_dependencies/windows.ps1

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ Write-Host "Updating MSYS2 and installing GTK4 dependencies..."
2222
& $msys2Exe -lc "pacman-key --init"
2323
& $msys2Exe -lc "pacman-key --populate msys2"
2424
& $msys2Exe -lc "pacman -Suy --noconfirm"
25-
& $msys2Exe -lc "pacman -S --noconfirm mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-python3 mingw-w64-ucrt-x86_64-python3-gobject"
25+
& $msys2Exe -lc "pacman -S --noconfirm mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-python3 mingw-w64-ucrt-x86_64-python3-gobject mingw-w64-ucrt-x86_64-gobject-introspection mingw-w64-ucrt-x86_64-pkg-config mingw-w64-ucrt-x86_64-cairo"
2626

27-
# Add MSYS2 to PATH
27+
# Add MSYS2 to PATH and set up environment for PyGObject build
2828
$env:PATH = "$msys2InstallPath\ucrt64\bin;$env:PATH"
29+
$env:PKG_CONFIG_PATH = "$msys2InstallPath\ucrt64\lib\pkgconfig;$msys2InstallPath\ucrt64\share\pkgconfig"
30+
$env:INCLUDE = "$msys2InstallPath\ucrt64\include;$env:INCLUDE"
31+
$env:LIB = "$msys2InstallPath\ucrt64\lib;$env:LIB"
32+
33+
# Ensure MSYS2 pkg-config is used instead of Strawberry Perl's broken one
34+
$env:PKG_CONFIG = "$msys2InstallPath\ucrt64\bin\pkg-config.exe"
35+
36+
# Set environment variables for current GitHub Actions step
37+
Write-Output "PATH=$env:PATH" >> $env:GITHUB_ENV
38+
Write-Output "PKG_CONFIG_PATH=$env:PKG_CONFIG_PATH" >> $env:GITHUB_ENV
39+
Write-Output "PKG_CONFIG=$env:PKG_CONFIG" >> $env:GITHUB_ENV
40+
Write-Output "INCLUDE=$env:INCLUDE" >> $env:GITHUB_ENV
41+
Write-Output "LIB=$env:LIB" >> $env:GITHUB_ENV
2942

3043
Write-Host "MSYS2 and GTK4 setup completed!"
44+
Write-Host "PKG_CONFIG_PATH set to: $env:PKG_CONFIG_PATH"

0 commit comments

Comments
 (0)