From d8014e66084f710858f7c8bb7418e2da3885dc9c Mon Sep 17 00:00:00 2001 From: Greg Ward Date: Sat, 26 Aug 2000 02:21:55 +0000 Subject: In 'check_extensions_list()': when converting old-style 'buildinfo' dict, don't assign None to any attributes of the Extension object. --- Lib/distutils/command/build_ext.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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') -- cgit v0.12