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

This commit is contained in:
Éric Araujo 2012-02-15 16:44:37 +01:00
parent 4b3c7846c9
commit b2f5c0a4c4
3 changed files with 10 additions and 8 deletions

View file

@ -165,8 +165,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