From: Andrew M. Kuchling Date: Thu, 6 Dec 2001 15:57:16 +0000 (+0000) Subject: [Bug #480882] Remove now-pointless check for existence for _curses_panel.c; X-Git-Tag: v2.2.1c1~515 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e7ffbb24e80800de3667a88af96d03f8c9717039;p=python [Bug #480882] Remove now-pointless check for existence for _curses_panel.c; Bugfix candidate. --- diff --git a/setup.py b/setup.py index 9796d3f90a..727f3b96bd 100644 --- a/setup.py +++ b/setup.py @@ -472,8 +472,7 @@ class PyBuildExt(build_ext): libraries = curses_libs) ) # If the curses module is enabled, check for the panel module - if (os.path.exists('Modules/_curses_panel.c') and - module_enabled(exts, '_curses') and + if (module_enabled(exts, '_curses') and self.compiler.find_library_file(lib_dirs, 'panel')): exts.append( Extension('_curses_panel', ['_curses_panel.c'], libraries = ['panel'] + curses_libs) )