Fix parsing of build_ext --libraries option (#1326113)

This commit is contained in:
Éric Araujo 2012-02-15 16:28:20 +01:00
parent 65d36dab4d
commit e897a7472d
3 changed files with 10 additions and 8 deletions

View file

@ -160,8 +160,7 @@ class build_ext (Command):
if plat_py_include != py_include:
self.include_dirs.append(plat_py_include)
if isinstance(self.libraries, str):
self.libraries = [self.libraries]
self.ensure_string_list('libraries')
# Life is easier if we're not forever checking for None, so
# simplify these options to empty lists if unset