[Numpy-discussion] numscons/numpy.distutils bug related to MACOSX_DEPLOYMENT_TARGET

Brian Granger ellisonbg.net at gmail.com
Tue Feb 3 19:53:14 EST 2009


> Hmm, that's still going to break for any custom build that decides to
> build Python with a specific MACOSX_DEPLOYMENT_TARGET. If you're going
> to fix it at all, it should default to the value in the Makefile that
> sysconfig is going to check against. The relevant code to copy is in
> sysconfig._init_posix().

Yes, I agree that sysconfig._init_posix() has the proper logic for
this.  This logic should also be applied to Cython as well probably.

Would you say that the proper fix then is to inspect the Makefile and
set MACOSX_DEPLOYMENT_TARGET to the valued used to build Python
itself.  Or should we still try to set it to 10.3 in some cases (like
the current numpy.distutils does) or look at the environment as well?

Cheers,

Brian



More information about the NumPy-Discussion mailing list