Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ab29b2

Browse files
committed
Check for None to decide when pyexpat should not be built.
1 parent 6512dbd commit 1ab29b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def detect_modules(self):
405405
else:
406406
expat_incs = find_file('xmlparse.h', inc_dirs, [])
407407

408-
if (expat_incs and
408+
if (expat_incs is not None and
409409
self.compiler.find_library_file(lib_dirs, 'expat')):
410410
exts.append( Extension('pyexpat', ['pyexpat.c'],
411411
define_macros = expat_defs,

0 commit comments

Comments
 (0)