The test for iconv_incs tested explicitly for None, but [] is returned

if the include files cannot be found.
This commit is contained in:
Jack Jansen 2003-02-24 12:48:58 +00:00
parent deac2acdb8
commit 70ec40befa
1 changed files with 2 additions and 2 deletions

View File

@ -622,8 +622,8 @@ class PyBuildExt(build_ext):
iconv_libs = find_library_file(self.compiler, 'iconv', lib_dirs, iconv_libs = find_library_file(self.compiler, 'iconv', lib_dirs,
['/usr/local/lib', '/usr/pkg/lib']) ['/usr/local/lib', '/usr/pkg/lib'])
if (iconv_incs is not None): if iconv_incs:
if iconv_libs is not None: if iconv_libs:
iconv_libraries = ['iconv'] iconv_libraries = ['iconv']
else: else:
iconv_libraries = [] # in libc iconv_libraries = [] # in libc