diff options
author | Greg Ward <gward@python.net> | 2000-08-26 02:21:55 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2000-08-26 02:21:55 (GMT) |
commit | d8014e66084f710858f7c8bb7418e2da3885dc9c (patch) | |
tree | 56f4f843cb2e361264331e5ebb3e83c1c8a87f7d | |
parent | f5e96fa6b7db794b6c536adfcd64d01a0e6e9bb7 (diff) | |
download | cpython-d8014e66084f710858f7c8bb7418e2da3885dc9c.zip cpython-d8014e66084f710858f7c8bb7418e2da3885dc9c.tar.gz cpython-d8014e66084f710858f7c8bb7418e2da3885dc9c.tar.bz2 |
In 'check_extensions_list()': when converting old-style 'buildinfo' dict,
don't assign None to any attributes of the Extension object.
-rw-r--r-- | Lib/distutils/command/build_ext.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py index aca6dac..4d779b8 100644 --- a/Lib/distutils/command/build_ext.py +++ b/Lib/distutils/command/build_ext.py @@ -278,7 +278,9 @@ class build_ext (Command): 'extra_objects', 'extra_compile_args', 'extra_link_args'): - setattr(ext, key, build_info.get(key)) + val = build_info.get(key) + if val is not None: + setattr(ext, key, val) # Medium-easy stuff: same syntax/semantics, different names. ext.runtime_library_dirs = build_info.get('rpath') |