Check for a not-found rlconf.h by testing for None.

This commit is contained in:
Martin v. Löwis 2006-02-27 15:16:21 +00:00
parent 322a23f21b
commit 2086eaf79c
1 changed files with 1 additions and 1 deletions

View File

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