mirror of
https://github.com/python/cpython.git
synced 2025-07-19 09:15:34 +00:00
In 'check_extensions_list()': when converting old-style 'buildinfo' dict,
don't assign None to any attributes of the Extension object.
This commit is contained in:
parent
f5e96fa6b7
commit
d8014e6608
1 changed files with 3 additions and 1 deletions
|
@ -278,7 +278,9 @@ class build_ext (Command):
|
||||||
'extra_objects',
|
'extra_objects',
|
||||||
'extra_compile_args',
|
'extra_compile_args',
|
||||||
'extra_link_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.
|
# Medium-easy stuff: same syntax/semantics, different names.
|
||||||
ext.runtime_library_dirs = build_info.get('rpath')
|
ext.runtime_library_dirs = build_info.get('rpath')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue