From: Martin v. Löwis Date: Sun, 21 Jan 2001 10:54:52 +0000 (+0000) Subject: Check for None to decide when pyexpat should not be built. X-Git-Tag: v2.1a1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1ab29b2d3c03886da51af55eb05113d6e4de6b41;p=python Check for None to decide when pyexpat should not be built. --- diff --git a/setup.py b/setup.py index b18ee18607..de9c5b943e 100644 --- a/setup.py +++ b/setup.py @@ -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,