mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18393: Remove use of deprecated API on OSX
The "Gestalt" function on OSX is deprecated (starting with OSX 10.8), remove its usage from the stdlib. The patch removes a number of private functions and a private module, but does not change the public API. The removed code was effectively dead, the platform module has used other code to fetch the OSX version for years and could only use on the Gestalt-based code as a fallback. That fallback can only trigger on broken OSX installs (that is, someone has removed parts of the system install)
This commit is contained in:
parent
7f93b36e73
commit
0fedb37c47
4 changed files with 5 additions and 151 deletions
4
setup.py
4
setup.py
|
@ -1519,10 +1519,6 @@ class PyBuildExt(build_ext):
|
|||
missing.append('ossaudiodev')
|
||||
|
||||
if host_platform == 'darwin':
|
||||
exts.append(
|
||||
Extension('_gestalt', ['_gestalt.c'],
|
||||
extra_link_args=['-framework', 'Carbon'])
|
||||
)
|
||||
exts.append(
|
||||
Extension('_scproxy', ['_scproxy.c'],
|
||||
extra_link_args=[
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue