Ned Deily <n...@python.org> added the comment:

This is a duplicate of Issue34597.

The Pythons provided by the python.org macOS installers are built to run on a 
range of operating system versions.  The current practice is to build 
installers that work on any macOS version from 10.9 on.  To safely provide that 
functionality, the installers are built using a 10.9 ABI.  As noted in the time 
module documentation, "Although this module is always available, not all 
functions are available on all platforms."  And, as noted in

   man 3 clock_gettime 

For current macOS releases: "These functions first appeared in Mac OSX 10.12".

So since those functions are not available in macOS 10.9, they are not 
available in the current python.org macOS Pythons.  There are some other 
examples of this.

To remove this restriction and still allow builds that support a range of 
versions, we would need to identify the system interfaces that have been added 
in new releases and then add code to use weak linking to test at runtime to 
gracefully handle missing interfaces, rather than segfaulting.  It would be 
desirable to support that but it's a fair amount of work including adding tests 
and no one has volunteered to do that work - yet.

----------
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Python needs to check existence of functions at runtime for 
targeting older macOS platforms
type: compile error -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39203>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to