mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
add the gestalt module back as _gestalt
This commit is contained in:
parent
7dca3ebc97
commit
ebacd26869
3 changed files with 83 additions and 5 deletions
8
setup.py
8
setup.py
|
@ -1118,6 +1118,14 @@ class PyBuildExt(build_ext):
|
|||
else:
|
||||
missing.append('ossaudiodev')
|
||||
|
||||
if sys.platform == 'darwin':
|
||||
exts.append(
|
||||
Extension('_gestalt', ['_gestalt.c'],
|
||||
extra_link_args=['-framework', 'Carbon'])
|
||||
)
|
||||
else:
|
||||
missing.append('_gestalt')
|
||||
|
||||
self.extensions.extend(exts)
|
||||
|
||||
# Call the method for detecting whether _tkinter can be compiled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue