mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Check for None to decide when pyexpat should not be built.
This commit is contained in:
parent
6512dbd5be
commit
1ab29b2d3c
1 changed files with 1 additions and 1 deletions
2
setup.py
2
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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue