summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 639b42f..4921ded 100644
--- a/setup.py
+++ b/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