greggdonovan opened a new pull request, #3276:
URL: https://github.com/apache/thrift/pull/3276

   Summary:
   - Switch Python setup scripts to use setuptools instead of stdlib distutils 
(Python 3.12 removed distutils).
   - Use setuptools._distutils errors for build_ext error handling when 
available.
   - Guard ntohll/htonll definitions in lib/py/src/ext/endian.h to avoid macOS 
macro collisions that break C++ builds.
   
   Why:
   - Python 3.12 no longer ships distutils, causing thrift builds from sdist to 
fail during wheel build.
   - On macOS, system headers define ntohll/htonll macros; the local inline 
definitions collided, causing compilation failures.
   
   Validation:
   - Built a wheel from lib/py with Python 3.12 successfully after the changes.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to