Commit 1837064a authored by Martin v. Löwis's avatar Martin v. Löwis

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

parent d4e6cafc
...@@ -405,7 +405,7 @@ class PyBuildExt(build_ext): ...@@ -405,7 +405,7 @@ class PyBuildExt(build_ext):
else: else:
expat_incs = find_file('xmlparse.h', inc_dirs, []) 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')): self.compiler.find_library_file(lib_dirs, 'expat')):
exts.append( Extension('pyexpat', ['pyexpat.c'], exts.append( Extension('pyexpat', ['pyexpat.c'],
define_macros = expat_defs, define_macros = expat_defs,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment