Ticket #3206: patch-setup.py

File patch-setup.py, 808 bytes (added by s.percivall@…, 19 years ago)

new patch-setup.py

Line 
1--- setup.py    Wed Mar  9 23:27:24 2005
2+++ ../../setup.py      Thu Mar 31 18:34:35 2005
3@@ -500,6 +500,7 @@
4             '/usr/local/include/db4',
5             '/opt/sfw/include/db4',
6             '/sw/include/db4',
7+            '/opt/local/include/db4',
8             '/usr/include/db3',
9             '/usr/local/include/db3',
10             '/opt/sfw/include/db3',
11@@ -905,7 +906,8 @@
12         self.extensions.extend(exts)
13 
14         # Call the method for detecting whether _tkinter can be compiled
15-        self.detect_tkinter(inc_dirs, lib_dirs)
16+        if ("--disable-tk" not in sysconfig.get_config_var("CONFIG_ARGS")):
17+            self.detect_tkinter(inc_dirs, lib_dirs)
18 
19     def detect_tkinter_darwin(self, inc_dirs, lib_dirs):
20         # The _tkinter module, using frameworks. Since frameworks are quite