summaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/setup.py b/setup.py
index 4c42a65..cb78091 100644
--- a/setup.py
+++ b/setup.py
@@ -495,14 +495,10 @@ class PyBuildExt(build_ext):
if tklib and tcllib:
# Check for the include files on Debian, where
# they're put in /usr/include/{tcl,tk}X.Y
- debian_tcl_include = ( '/usr/include/tcl' + version )
- debian_tk_include = ( '/usr/include/tk' + version )
- tcl_includes = find_file('tcl.h', inc_dirs,
- [debian_tcl_include]
- )
- tk_includes = find_file('tk.h', inc_dirs,
- [debian_tk_include]
- )
+ debian_tcl_include = [ '/usr/include/tcl' + version ]
+ debian_tk_include = [ '/usr/include/tk' + version ] + debian_tcl_include
+ tcl_includes = find_file('tcl.h', inc_dirs, debian_tcl_include)
+ tk_includes = find_file('tk.h', inc_dirs, debian_tk_include)
if (tcllib is None or tklib is None and
tcl_includes is None or tk_includes is None):