diff Lib/distutils/command/build_ext.py @ 14216:d33179cdc511 legacy-trunk

In 'check_extensions_list()': when converting old-style 'buildinfo' dict, don't assign None to any attributes of the Extension object.
author Greg Ward <gward@python.net>
date Sat, 26 Aug 2000 02:21:55 +0000
parents 370ade88a52a
children 34379127ee3b
line wrap: on
line diff
--- a/Lib/distutils/command/build_ext.py	Fri Aug 25 22:49:05 2000 +0000
+++ b/Lib/distutils/command/build_ext.py	Sat Aug 26 02:21:55 2000 +0000
@@ -278,7 +278,9 @@
                         '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')