From a3c7f77e50f900721817934120d60c2361b3c40d Mon Sep 17 00:00:00 2001 From: Nikita Shulga Date: Fri, 5 Sep 2025 10:09:44 -0700 Subject: [PATCH] [EZ][CD] Update MacOS deployment platform to 11.0 (#162264) Fixes following warning ``` MACOSX_DEPLOYMENT_TARGET is set to a lower value (10.15) than the version on which the Python interpreter was compiled (11.0) ``` Update deployment platform in `README.MD` as well Pull Request resolved: https://github.com/pytorch/pytorch/pull/162264 Approved by: https://github.com/clee2000, https://github.com/Skylion007, https://github.com/ZainRizvi ghstack dependencies: #162263 --- .ci/wheel/build_wheel.sh | 4 ++-- README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.ci/wheel/build_wheel.sh b/.ci/wheel/build_wheel.sh index b9b6448ae208..e4d8b1cb87bd 100755 --- a/.ci/wheel/build_wheel.sh +++ b/.ci/wheel/build_wheel.sh @@ -124,7 +124,7 @@ popd export TH_BINARY_BUILD=1 export INSTALL_TEST=0 # dont install test binaries into site-packages -export MACOSX_DEPLOYMENT_TARGET=10.15 +export MACOSX_DEPLOYMENT_TARGET=11.0 export CMAKE_PREFIX_PATH=${CONDA_PREFIX:-"$(dirname $(which conda))/../"} SETUPTOOLS_PINNED_VERSION="==70.1.0" @@ -223,7 +223,7 @@ export BUILD_TEST=OFF pushd "$pytorch_rootdir" echo "Calling setup.py bdist_wheel at $(date)" -python setup.py bdist_wheel -d "$whl_tmp_dir" +python setup.py bdist_wheel -d "$whl_tmp_dir" --plat-name ${mac_version} echo "Finished setup.py bdist_wheel at $(date)" diff --git a/README.md b/README.md index 92c6c92fc1ed..99e6dabd1618 100644 --- a/README.md +++ b/README.md @@ -394,7 +394,7 @@ On macOS ```bash export CMAKE_PREFIX_PATH="${CONDA_PREFIX:-'$(dirname $(which conda))/../'}:${CMAKE_PREFIX_PATH}" -MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ CMAKE_ONLY=1 python setup.py build +MACOSX_DEPLOYMENT_TARGET=11.0 CMAKE_ONLY=1 python setup.py build ccmake build # or cmake-gui build ```