Can't check IS_MACOS until common_utils is invoked.

This commit is contained in:
Russell Keith-Magee 2024-10-29 09:39:58 +08:00
parent 72d81e24a8
commit ec214e4d7c
No known key found for this signature in database
GPG Key ID: 3D2DAB6A37BB5BC3

View File

@ -1,13 +1,5 @@
#!/bin/bash
# Define custom utilities
# Test for macOS with [ -n "$IS_MACOS" ]
if [ -z "$IS_MACOS" ]; then
export MB_ML_LIBC=${AUDITWHEEL_POLICY::9}
export MB_ML_VER=${AUDITWHEEL_POLICY:9}
else
# Build and install macOS builds into the `build/deps` folder.
BUILD_PREFIX=$(pwd)/build/deps
fi
export PLAT=$CIBW_ARCHS
source wheels/multibuild/common_utils.sh
source wheels/multibuild/library_builders.sh
@ -15,6 +7,16 @@ if [ -z "$IS_MACOS" ]; then
source wheels/multibuild/manylinux_utils.sh
fi
# Test for macOS with [ -n "$IS_MACOS" ]
echo "IS MACOS: $IS_MACOS"
if [ -z "$IS_MACOS" ]; then
export MB_ML_LIBC=${AUDITWHEEL_POLICY::9}
export MB_ML_VER=${AUDITWHEEL_POLICY:9}
elseac
# Build and install macOS builds into the `build/deps` folder.
BUILD_PREFIX=$(pwd)/build/deps
fi
ARCHIVE_SDIR=pillow-depends-main
# Package versions for fresh source builds