diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-15 15:44:37 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-15 15:44:37 (GMT) |
commit | b2f5c0a4c4e3c382e4ffaa44a2aa6d2c70f60141 (patch) | |
tree | a2f9bb345b3dd74d45f74916d86b7c1000406daf /Lib/distutils/command | |
parent | 4b3c7846c9a25dfe4e508d9059ff8274023acd09 (diff) | |
download | cpython-b2f5c0a4c4e3c382e4ffaa44a2aa6d2c70f60141.zip cpython-b2f5c0a4c4e3c382e4ffaa44a2aa6d2c70f60141.tar.gz cpython-b2f5c0a4c4e3c382e4ffaa44a2aa6d2c70f60141.tar.bz2 |
Fix parsing of build_ext --libraries option (#1326113)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_ext.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index 8d843d6..34b61bd 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -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 |