Have safe_remove remove all instances
This commit is contained in:
parent
ae112294c8
commit
2e657f0020
3
setup.py
3
setup.py
@ -339,10 +339,11 @@ def parallel_run(todo, desc='Compiling {} ...'):
|
||||
|
||||
def safe_remove(items, *removals):
|
||||
for x in removals:
|
||||
while True:
|
||||
try:
|
||||
items.remove(x)
|
||||
except ValueError:
|
||||
pass
|
||||
break
|
||||
|
||||
|
||||
def compile_c_extension(kenv, module, incremental, compilation_database, all_keys, sources, headers):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user