mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 12:17:14 +03:00
42 lines
1.1 KiB
Bash
Executable File
42 lines
1.1 KiB
Bash
Executable File
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
# webp, zstd, xz, libtiff, libxcb cause a conflict with building webp, libtiff, libxcb
|
|
# curl from brew requires zstd, use system curl
|
|
# if php is installed, brew tries to reinstall these after installing openblas
|
|
brew remove --ignore-dependencies webp zstd xz libtiff libxcb curl php
|
|
|
|
if [[ "$PLAT" == "arm64" ]]; then
|
|
MACOSX_DEPLOYMENT_TARGET="11.0"
|
|
else
|
|
MACOSX_DEPLOYMENT_TARGET="10.10"
|
|
fi
|
|
fi
|
|
|
|
if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
|
|
MB_PYTHON_OSX_VER="10.9"
|
|
if [[ "$PLAT" == "i686" ]]; then
|
|
DOCKER_TEST_IMAGE="multibuild/xenial_$PLAT"
|
|
else
|
|
DOCKER_TEST_IMAGE="multibuild/focal_$PLAT"
|
|
fi
|
|
fi
|
|
|
|
echo "::group::Install a virtualenv"
|
|
source multibuild/common_utils.sh
|
|
source multibuild/travis_steps.sh
|
|
python3 -m pip install virtualenv
|
|
before_install
|
|
echo "::endgroup::"
|
|
|
|
echo "::group::Build wheel"
|
|
clean_code $REPO_DIR $BUILD_COMMIT
|
|
build_wheel $REPO_DIR $PLAT
|
|
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"
|
|
echo "::endgroup::"
|
|
|
|
if [[ $MACOSX_DEPLOYMENT_TARGET != "11.0" ]]; then
|
|
echo "::group::Test wheel"
|
|
install_run $PLAT
|
|
echo "::endgroup::"
|
|
fi
|