Don't use multibuild variables before invoking multibuild.

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

View File

@ -1,4 +1,14 @@
#!/bin/bash #!/bin/bash
# Setup that needs to be done before multibuild utils are invoked
if [[ "$(uname -s)" == "Darwin" ]]; then
# Build and install macOS builds into the `build/deps` folder.
BUILD_PREFIX=$(pwd)/build/deps
else
export MB_ML_LIBC=${AUDITWHEEL_POLICY::9}
export MB_ML_VER=${AUDITWHEEL_POLICY:9}
fi
# Define custom utilities # Define custom utilities
export PLAT=$CIBW_ARCHS export PLAT=$CIBW_ARCHS
source wheels/multibuild/common_utils.sh source wheels/multibuild/common_utils.sh
@ -7,16 +17,6 @@ if [ -z "$IS_MACOS" ]; then
source wheels/multibuild/manylinux_utils.sh source wheels/multibuild/manylinux_utils.sh
fi 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 ARCHIVE_SDIR=pillow-depends-main
# Package versions for fresh source builds # Package versions for fresh source builds