Skip to content

Commit

Permalink
Specify MACOSX_DEPLOYMENT_TARGET for all releases
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-el committed Apr 9, 2024
1 parent de4b066 commit 0376d58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bundle_with_dakota_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,17 @@ jobs:
# hint regarding architecture to avoid universal wheel generated
export _PYTHON_HOST_PLATFORM="macosx-11.0-$arch_ver"
export ARCHFLAGS="-arch $arch_ver"
export MACOSX_DEPLOYMENT_TARGET="11.0"
target_version=$(sw_vers --productVersion | cut -d . -f 1)
# the arm64 builds require deployment targets >= 13.0
if [ "$arch_ver" == "arm64" ]; then
export MACOSX_DEPLOYMENT_TARGET="${target_version}.0"
fi
pip install delocate==0.10.7
echo "$MACOSX_DEPLOYMENT_TARGET" >> $GITHUB_STEP_SUMMARY
pip install delocate
python -m pip install .
PYTHON_VERSION_TRIM=$(echo ${{ matrix.python-version }} | tr -d ".")
echo $PYTHON_VERSION_TRIM
Expand Down

0 comments on commit 0376d58

Please sign in to comment.