[Distutils] Plans for binary wheels, and PyPi and OS-X

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Nov 2 00:10:14 CET 2013


Donald Stufft wrote:
> python -c "import distutils; print(distutils.util.get_platform().replace('.', '_').replace('-', '_'))"
> macosx_10_8_x86_64

Hmm, this just appears to reflect the version of MacOSX
that the Python running distutils was built on, or is
running on (not sure which).

This is not quite the same thing as MACOSX_DEPLOYMENT_TARGET,
which is the minimum version of MacOSX that is needed to
run a piece of code.

Distutils seems to assume they're the same, but if you're
building a binary wheel for distribution, it makes sense
to set MACOSX_DEPLOYMENT_TARGET as low as possible.

Will there be a mechanism to get the actual MacOSX version
needed into the metadata, rather than the one you happen
to be building on?

-- 
Greg


More information about the Distutils-SIG mailing list