2023-09-30 03:24:22 +03:00
|
|
|
#!/bin/bash
|
2020-10-24 04:17:04 +03:00
|
|
|
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
2022-02-04 03:32:55 +03:00
|
|
|
# webp, zstd, xz, libtiff, libxcb cause a conflict with building webp, libtiff, libxcb
|
2023-01-12 12:58:32 +03:00
|
|
|
# libxdmcp causes an issue on macOS < 11
|
2020-12-11 18:12:07 +03:00
|
|
|
# curl from brew requires zstd, use system curl
|
2021-06-16 23:55:22 +03:00
|
|
|
# if php is installed, brew tries to reinstall these after installing openblas
|
2023-01-26 08:37:40 +03:00
|
|
|
# remove lcms2 and libpng to fix building openjpeg on arm64
|
|
|
|
brew remove --ignore-dependencies webp zstd xz libpng libtiff libxcb libxdmcp curl php lcms2 ghostscript
|
2022-03-19 22:09:46 +03:00
|
|
|
|
2023-02-21 05:29:13 +03:00
|
|
|
brew install pkg-config
|
|
|
|
|
2022-03-19 22:09:46 +03:00
|
|
|
if [[ "$PLAT" == "arm64" ]]; then
|
2022-04-05 13:55:13 +03:00
|
|
|
export MACOSX_DEPLOYMENT_TARGET="11.0"
|
2022-03-19 22:09:46 +03:00
|
|
|
else
|
2022-04-05 13:55:13 +03:00
|
|
|
export MACOSX_DEPLOYMENT_TARGET="10.10"
|
2022-03-19 22:09:46 +03:00
|
|
|
fi
|
2020-10-24 04:17:04 +03:00
|
|
|
fi
|
|
|
|
|
2020-12-20 11:19:45 +03:00
|
|
|
if [[ "$MB_PYTHON_VERSION" == pypy3* ]]; then
|
2021-08-27 15:30:36 +03:00
|
|
|
MB_PYTHON_OSX_VER="10.9"
|
2020-10-24 04:17:04 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "::group::Install a virtualenv"
|
2023-09-24 15:51:42 +03:00
|
|
|
source wheels/multibuild/common_utils.sh
|
|
|
|
source wheels/multibuild/travis_steps.sh
|
2020-12-18 08:38:23 +03:00
|
|
|
python3 -m pip install virtualenv
|
2020-10-24 04:17:04 +03:00
|
|
|
before_install
|
|
|
|
echo "::endgroup::"
|
|
|
|
|
|
|
|
echo "::group::Build wheel"
|
2022-04-10 08:06:44 +03:00
|
|
|
build_wheel
|
2020-10-24 04:17:04 +03:00
|
|
|
ls -l "${GITHUB_WORKSPACE}/${WHEEL_SDIR}/"
|
|
|
|
echo "::endgroup::"
|
|
|
|
|
2021-01-30 02:38:55 +03:00
|
|
|
if [[ $MACOSX_DEPLOYMENT_TARGET != "11.0" ]]; then
|
|
|
|
echo "::group::Test wheel"
|
2022-04-10 08:06:44 +03:00
|
|
|
install_run
|
2021-01-30 02:38:55 +03:00
|
|
|
echo "::endgroup::"
|
2021-05-16 04:58:25 +03:00
|
|
|
fi
|