]> granicus.if.org Git - python/commitdiff
Check for None to decide when pyexpat should not be built.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 21 Jan 2001 10:54:52 +0000 (10:54 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 21 Jan 2001 10:54:52 +0000 (10:54 +0000)
setup.py

index b18ee18607589501b236ca13fcfbad6cabfe2572..de9c5b943e0a283f30993d504e1c38b3caf8f0af 100644 (file)
--- 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,