diff --git a/.github/workflows/wheels-dependencies.sh b/.github/workflows/wheels-dependencies.sh index 2e56e75f770..73b8a7e2f31 100755 --- a/.github/workflows/wheels-dependencies.sh +++ b/.github/workflows/wheels-dependencies.sh @@ -80,71 +80,15 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then fi fi -build_xz if [ -z "$IS_ALPINE" ] && [ -z "$IS_MACOS" ]; then yum remove -y zlib-devel fi build_new_zlib -if [ -n "$IS_MACOS" ]; then - ORIGINAL_BUILD_PREFIX=$BUILD_PREFIX - ORIGINAL_PKG_CONFIG_PATH=$PKG_CONFIG_PATH - BUILD_PREFIX=`dirname $(dirname $(which python))` - PKG_CONFIG_PATH="$BUILD_PREFIX/lib/pkgconfig" -fi -build_simple xcb-proto 1.16.0 https://xorg.freedesktop.org/archive/individual/proto -if [ -n "$IS_MACOS" ]; then - build_simple xorgproto 2023.2 https://www.x.org/pub/individual/proto - build_simple libXau 1.0.11 https://www.x.org/pub/individual/lib - build_simple libpthread-stubs 0.5 https://xcb.freedesktop.org/dist - ls -la /Library/Frameworks/Python.framework/Versions - ls -la /Library/Frameworks/Python.framework/Versions/Current - ls -la /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc - cp /Library/Frameworks/Python.framework/Versions/Current/share/pkgconfig/xcb-proto.pc /Library/Frameworks/Python.framework/Versions/Current/lib/pkgconfig -else - sed s/\${pc_sysrootdir\}// /usr/local/share/pkgconfig/xcb-proto.pc > /usr/local/lib/pkgconfig/xcb-proto.pc -fi -build_simple libxcb $LIBXCB_VERSION https://www.x.org/releases/individual/lib -if [ -n "$IS_MACOS" ]; then - BUILD_PREFIX=$ORIGINAL_BUILD_PREFIX - PKG_CONFIG_PATH=$ORIGINAL_PKG_CONFIG_PATH -fi - build_libjpeg_turbo if [[ -n "$IS_MACOS" ]]; then rm /usr/local/lib/libjpeg.dylib fi -build_tiff -build_libpng -build_lcms2 -build_openjpeg - -ORIGINAL_CFLAGS=$CFLAGS -CFLAGS="$CFLAGS -O3 -DNDEBUG" -if [[ -n "$IS_MACOS" ]]; then - CFLAGS="$CFLAGS -Wl,-headerpad_max_install_names" -fi -build_libwebp -CFLAGS=$ORIGINAL_CFLAGS - -build_brotli - -if [ -n "$IS_MACOS" ]; then - # Custom freetype build - build_simple freetype $FREETYPE_VERSION https://download.savannah.gnu.org/releases/freetype tar.gz --with-harfbuzz=no -else - build_freetype -fi - -if [ -z "$IS_MACOS" ]; then - export FREETYPE_LIBS=-lfreetype - export FREETYPE_CFLAGS=-I/usr/local/include/freetype2/ -fi -build_simple harfbuzz $HARFBUZZ_VERSION https://github.com/harfbuzz/harfbuzz/releases/download/$HARFBUZZ_VERSION tar.xz --with-freetype=yes --with-glib=no -if [ -z "$IS_MACOS" ]; then - export FREETYPE_LIBS='' - export FREETYPE_CFLAGS='' -fi # Append licenses for filename in wheels/dependency_licenses/*; do