diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-15 16:25:25 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-15 16:25:25 (GMT) |
commit | 4575afcb53db638232d897aed5e84bb629fc1ecf (patch) | |
tree | 5ba0a51e5cedde4b0f29731512b2c745c6775913 /Lib/packaging/command | |
parent | 1d175f776836ef0106d06ff2f264635df125340e (diff) | |
download | cpython-4575afcb53db638232d897aed5e84bb629fc1ecf.zip cpython-4575afcb53db638232d897aed5e84bb629fc1ecf.tar.gz cpython-4575afcb53db638232d897aed5e84bb629fc1ecf.tar.bz2 |
Fix parsing of packaging’s build_ext --libraries option (#1326113)
Diffstat (limited to 'Lib/packaging/command')
-rw-r--r-- | Lib/packaging/command/build_ext.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/packaging/command/build_ext.py b/Lib/packaging/command/build_ext.py index 4f375b6..4c85822 100644 --- a/Lib/packaging/command/build_ext.py +++ b/Lib/packaging/command/build_ext.py @@ -159,8 +159,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 |