]> granicus.if.org Git - python/commitdiff
Check for a not-found rlconf.h by testing for None.
authorMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Feb 2006 15:16:21 +0000 (15:16 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Mon, 27 Feb 2006 15:16:21 +0000 (15:16 +0000)
setup.py

index 149b9403c4d5496f1676ce8b46609f5595e8c55a..5ff13c00a1789e822e0dd36b2491cf5ed51e852d 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -452,7 +452,7 @@ class PyBuildExt(build_ext):
             # MacOSX 10.4 has a broken readline. Don't try to build
             # the readline module unless the user has installed a fixed
             # readline package
-            if not find_file('readline/rlconf.h', inc_dirs, []):
+            if find_file('readline/rlconf.h', inc_dirs, []) is None:
                 do_readline = False
         if do_readline:
             readline_libs = ['readline']