1From bd152d01185a371a04680bc772c6454678de34f5 Mon Sep 17 00:00:00 2001 2From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 3Date: Wed, 23 Dec 2015 11:36:00 +0100 4Subject: [PATCH] Don't look in /usr/lib/termcap for libraries 5 6Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 7--- 8 setup.py | 5 +---- 9 1 file changed, 1 insertion(+), 4 deletions(-) 10 11diff --git a/setup.py b/setup.py 12index 2e15fedeab2..b283ea3aeed 100644 13--- a/setup.py 14+++ b/setup.py 15@@ -1111,12 +1111,9 @@ def detect_readline_curses(self): 16 pass # Issue 7384: Already linked against curses or tinfo. 17 elif curses_library: 18 readline_libs.append(curses_library) 19- elif self.compiler.find_library_file(self.lib_dirs + 20- ['/usr/lib/termcap'], 21- 'termcap'): 22+ elif self.compiler.find_library_file(self.lib_dirs, 'termcap'): 23 readline_libs.append('termcap') 24 self.add(Extension('readline', ['readline.c'], 25- library_dirs=['/usr/lib/termcap'], 26 libraries=readline_libs)) 27 else: 28 self.missing.append('readline') 29-- 302.44.0 31 32