The test for iconv_incs tested explicitly for None, but [] is returned
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Feb 2003 12:48:58 +0000 (12:48 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 24 Feb 2003 12:48:58 +0000 (12:48 +0000)
if the include files cannot be found.

setup.py

index 31df74ce5ea1c6a4eb532899ecd81faac227e4e6..96ed416f23780a78cf970572ce404fe7bed4c5c3 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -622,8 +622,8 @@ class PyBuildExt(build_ext):
             iconv_libs = find_library_file(self.compiler, 'iconv', lib_dirs,
                                            ['/usr/local/lib', '/usr/pkg/lib'])
 
-            if (iconv_incs is not None):
-                if iconv_libs is not None:
+            if iconv_incs:
+                if iconv_libs:
                     iconv_libraries = ['iconv']
                 else:
                     iconv_libraries = [] # in libc