Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move Azure builds to OSX 10.15. #7639

Closed
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- template: buildscripts/azure/azure-linux-macos.yml
parameters:
name: macOS
vmImage: macOS-10.14
vmImage: macOS-11
matrix:
py37_np118:
PYTHON: '3.7'
Expand Down
1 change: 1 addition & 0 deletions buildscripts/azure/azure-linux-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

- script: |
export PATH=$HOME/miniconda3/bin:$PATH
export MACOSX_SDK_VERSION=10.15
buildscripts/incremental/build.sh
displayName: 'Build'

Expand Down
13 changes: 12 additions & 1 deletion buildscripts/incremental/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

source activate $CONDA_ENV
source activate
conda activate $CONDA_ENV

# Make sure any error below is reported as such
set -v -e
Expand All @@ -12,6 +13,16 @@ else
EXTRA_BUILD_EXT_FLAGS=""
fi

if [[ $(uname) == "Darwin" ]]; then
export MACOSX_SDK_VERSION=10.15
export MACOSX_DEPLOYMENT_TARGET=10.15
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
export OSX_SDK_DIR="$(xcode-select -p)/Platforms/MacOSX.platform/Developer/SDKs"
export USING_SYSTEM_SDK_DIR=1
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
plutil -replace MinimumSDKVersion -string ${MACOSX_SDK_VERSION} $(xcode-select -p)/Platforms/MacOSX.platform/Info.plist
plutil -replace DTSDKName -string macosx${MACOSX_SDK_VERSION}internal $(xcode-select -p)/Platforms/MacOSX.platform/Info.plist
fi
python setup.py build_ext -q --inplace --debug $EXTRA_BUILD_EXT_FLAGS
# (note we don't install to avoid problems with extra long Windows paths
# during distutils-dependent tests -- e.g. test_pycc)
Expand Down
7 changes: 4 additions & 3 deletions buildscripts/incremental/setup_conda_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ if [[ $(uname) == Linux ]]; then
$CONDA_INSTALL gcc_linux-64 gxx_linux-64
fi
elif [[ $(uname) == Darwin ]]; then
$CONDA_INSTALL clang_osx-64 clangxx_osx-64
# Install llvm-openmp and intel-openmp on OSX too
$CONDA_INSTALL llvm-openmp intel-openmp
#$CONDA_INSTALL clang_osx-64 clangxx_osx-64
## Install llvm-openmp and intel-openmp on OSX too
#$CONDA_INSTALL llvm-openmp intel-openmp
echo "using system compilers"
fi

# `pip install` all the dependencies on Python 3.10
Expand Down