Repository navigation
Conversation
|
Change looks fine to me, @gnossen is there an official list of supported macOS versions for Python? |
There isn't, though we probably should have one. Regardless, this change looks reasonable, given that our new floor will be a six year old Mac OS release. |
|
@sourabhsinghs @sreenithi FYI, this will change the artifacts for the next release. |
| # version Python was built on. You can further customize the target macOS | ||
| # version by setting the MACOSX_DEPLOYMENT_TARGET environment variable before | ||
| # running setup.py. | ||
| if sys.platform == "darwin": |
There was a problem hiding this comment.
Oh good catch. I added this to grpcio_observability/setup.py too
There was a problem hiding this comment.
We don't need it since observability only support Linux for now, but it's fine to add it.
There was a problem hiding this comment.
Oh that's why I didn't see errors from grpcio_observability build. Thanks for the info.
CPython uses this [logic](https://github.com/pypa/cibuildwheel/blob/b98602705f5449b8e221a1849a8dc18e8d8b14db/cibuildwheel/macos.py#L302-L323) to determine `MACOSX_DEPLOYMENT_TARGET` and the lowest possible value is `10.9` (Mavericks) as of today. But we need to use at least `10.14` (Mojave) to get prepared for upcoming C++17 upgrade (scheduled in 2024-11). This `10.14` version should be safe to use as i) Apple stopped supporting any versions older than 12.0 (https://endoflife.date/macos) and ii) this version is older than officially support OSX version (11.0) of gRPC Core/C++ (https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md) Closes grpc#37997 PiperOrigin-RevId: 691535457
CPython uses this [logic](https://github.com/pypa/cibuildwheel/blob/b98602705f5449b8e221a1849a8dc18e8d8b14db/cibuildwheel/macos.py#L302-L323) to determine `MACOSX_DEPLOYMENT_TARGET` and the lowest possible value is `10.9` (Mavericks) as of today. But we need to use at least `10.14` (Mojave) to get prepared for upcoming C++17 upgrade (scheduled in 2024-11). This `10.14` version should be safe to use as i) Apple stopped supporting any versions older than 12.0 (https://endoflife.date/macos) and ii) this version is older than officially support OSX version (11.0) of gRPC Core/C++ (https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md) Closes grpc#37997 PiperOrigin-RevId: 691535457
CPython uses this logic to determine
MACOSX_DEPLOYMENT_TARGETand the lowest possible value is10.9(Mavericks) as of today. But we need to use at least10.14(Mojave) to get prepared for upcoming C++17 upgrade (scheduled in 2024-11). This10.14version should be safe to use as i) Apple stopped supporting any versions older than 12.0 (https://endoflife.date/macos) and ii) this version is older than officially support OSX version (11.0) of gRPC Core/C++ (https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md)