add the gestalt module back as _gestalt

This commit is contained in:
Benjamin Peterson 2008-05-29 21:09:51 +00:00
parent 7dca3ebc97
commit ebacd26869
3 changed files with 83 additions and 5 deletions

View file

@ -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