Check for None to decide when pyexpat should not be built.

This commit is contained in:
Martin v. Löwis 2001-01-21 10:54:52 +00:00
parent 6512dbd5be
commit 1ab29b2d3c

View file

@ -405,7 +405,7 @@ class PyBuildExt(build_ext):
else:
expat_incs = find_file('xmlparse.h', inc_dirs, [])
if (expat_incs and
if (expat_incs is not None and
self.compiler.find_library_file(lib_dirs, 'expat')):
exts.append( Extension('pyexpat', ['pyexpat.c'],
define_macros = expat_defs,