]> granicus.if.org Git - python/commitdiff
[Bug #480882] Remove now-pointless check for existence for _curses_panel.c;
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Dec 2001 15:57:16 +0000 (15:57 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Dec 2001 15:57:16 +0000 (15:57 +0000)
Bugfix candidate.

setup.py

index 9796d3f90ad9d38244ced9a8222f66a6e8f3b835..727f3b96bd60586122e839d54e4ee928d872cdc0 100644 (file)
--- 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) )