--- /usr/lib/python2.7/distutils/command/build_ext.py 2011-08-16 14:28:32.000000000 +0400 +++ /usr/lib/python2.7/distutils/command/build_ext_new.py 2011-10-25 03:14:34.000000000 +0400 @@ -161,7 +161,7 @@ self.include_dirs.append(plat_py_include) if isinstance(self.libraries, str): - self.libraries = [self.libraries] + self.libraries = self.libraries.split(os.pathsep) # Life is easier if we're not forever checking for None, so # simplify these options to empty lists if unset --- /usr/lib/python2.7/distutils/cygwinccompiler.py 2011-08-16 14:28:32.000000000 +0400 +++ /usr/lib/python2.7/distutils/cygwinccompiler-new.py 2011-10-25 03:30:57.000000000 +0400 @@ -77,6 +77,8 @@ return ['msvcr90'] else: raise ValueError("Unknown MS Compiler version %s " % msc_ver) + else: + return [] class CygwinCCompiler (UnixCCompiler): @@ -330,9 +332,6 @@ # dlls need another dll (mingwm10.dll see Mingw32 docs) # (-mthreads: Support thread-safe exception handling on `Mingw32') - # no additional libraries needed - self.dll_libraries=[] - # Include the appropriate MSVC runtime library if Python was built # with MSVC 7.0 or later. self.dll_libraries = get_msvcr()