Skip to content

Commit d1855b8

Browse files
cho-mCopilot
andcommitted
pyside: exclude qtwebengine on arm64 linux
Apply suggestion from @Copilot Co-authored-by: Copilot <[email protected]>
1 parent 2bc1b16 commit d1855b8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Formula/p/pyside.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,19 @@ class Pyside < Formula
6868
depends_on "qtshadertools"
6969
end
7070

71-
on_system :linux, macos: :sonoma_or_newer do
71+
on_sonoma :or_newer do
7272
depends_on "qtwebengine"
7373
depends_on "qtwebview"
7474
end
7575

7676
on_linux do
7777
depends_on "mesa"
78+
79+
# TODO: Add dependencies on all Linux when `qtwebengine` is bottled on arm64 Linux
80+
on_intel do
81+
depends_on "qtwebengine"
82+
depends_on "qtwebview"
83+
end
7884
end
7985

8086
# Fix .../sources/pyside6/qtexampleicons/module.c:4:10: fatal error: 'Python.h' file not found
@@ -129,7 +135,7 @@ def install
129135
Widgets
130136
Xml
131137
]
132-
modules << "WebEngineCore" if OS.linux? || MacOS.version > :ventura
138+
modules << "WebEngineCore" if (OS.linux? && Hardware::CPU.intel?) || (OS.mac? && MacOS.version >= :sonoma)
133139
modules.each { |mod| system python3, "-c", "import PySide6.Qt#{mod}" }
134140

135141
pyincludes = shell_output("#{python3}-config --includes").chomp.split

0 commit comments

Comments
 (0)