mirror of https://github.com/python/cpython
The test for iconv_incs tested explicitly for None, but [] is returned
if the include files cannot be found.
This commit is contained in:
parent
deac2acdb8
commit
70ec40befa
4
setup.py
4
setup.py
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue