@@ -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
132130if [[ -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
143141fi
0 commit comments