Skip to content

Commit acd7ece

Browse files
authored
Merge pull request #7764 from radarhere/libxau
Fixed libXau error in wheels for macOS 10.10
2 parents a5b4806 + b374f26 commit acd7ece

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/wheels-dependencies.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,11 @@ function build {
7272

7373
build_simple xcb-proto 1.16.0 https://xorg.freedesktop.org/archive/individual/proto
7474
if [ -n "$IS_MACOS" ]; then
75-
if [[ "$CIBW_ARCHS" == "arm64" ]]; then
76-
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
77-
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
78-
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
79-
if [ -f /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc ]; then
80-
cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig/xcb-proto.pc
81-
fi
75+
build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto
76+
build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib
77+
build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist
78+
if [ -f /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc ]; then
79+
cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig/xcb-proto.pc
8280
fi
8381
else
8482
sed s/\${pc_sysrootdir\}// /usr/local/share/pkgconfig/xcb-proto.pc > /usr/local/lib/pkgconfig/xcb-proto.pc
@@ -131,13 +129,13 @@ untar pillow-depends-main.zip
131129

132130
if [[ -n "$IS_MACOS" ]]; then
133131
# webp, libtiff, libxcb cause a conflict with building webp, libtiff, libxcb
134-
# libxdmcp causes an issue on macOS < 11
132+
# libxau and libxdmcp cause an issue on macOS < 11
135133
# if php is installed, brew tries to reinstall these after installing openblas
136134
# remove cairo to fix building harfbuzz on arm64
137135
# remove lcms2 and libpng to fix building openjpeg on arm64
138136
# remove zstd to avoid inclusion on x86_64
139137
# curl from brew requires zstd, use system curl
140-
brew remove --ignore-dependencies webp libpng libtiff libxcb libxdmcp curl php cairo lcms2 ghostscript zstd
138+
brew remove --ignore-dependencies webp libpng libtiff libxcb libxau libxdmcp curl php cairo lcms2 ghostscript zstd
141139

142140
brew install pkg-config
143141
fi

0 commit comments

Comments
 (0)