[issue42504] Failure to build with MACOSX_DEPLOYMENT_TARGET=11 on Big Sur

Ronald Oussoren report at bugs.python.org
Thu Dec 3 13:53:15 EST 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

The value *for this key* is a dot separated sequence of integer labels in a string. The limit of that is a single integer label that could be converted to a Python int. 

With the current patch get_config_var('MACOSX_DEPLOYMENT_TARGET') mostly returns a string, but sometimes an integer.  And the last part is new behaviour, which means existing consumers of this won't be prepared to handle a non-string value (other than None).

I'll probably create an alternative PR this weekend.


sysconfig converts config values that look like integers to python ints because that's often useful, but in this case it isn't. This part of the code base is old and has not very well defined semantics.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42504>
_______________________________________


More information about the Python-bugs-list mailing list