Skip to content

Commit a08bf5b

Browse files
Debian Science Teamrebecca-palmer
authored andcommitted
Don't crash on clean
Author: Rebecca N. Palmer <[email protected]> Forwarded: no Gbp-Pq: Name unbreak_clean.patch
1 parent cc2f261 commit a08bf5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,14 +152,14 @@ def initialize_options(self) -> None:
152152
".orig",
153153
):
154154
self._clean_me.append(filepath)
155-
self._clean_trees.append(pjoin(root, d) for d in dirs if d == "__pycache__")
155+
self._clean_trees.extend([pjoin(root, d) for d in dirs if d == "__pycache__"])
156156

157157
# clean the generated pxi files
158158
for pxifile in _pxifiles:
159159
pxifile_replaced = pxifile.replace(".pxi.in", ".pxi")
160160
self._clean_me.append(pxifile_replaced)
161161

162-
self._clean_trees.append(d for d in ("build", "dist") if os.path.exists(d))
162+
self._clean_trees.extend([d for d in ("build", "dist") if os.path.exists(d)])
163163

164164
def finalize_options(self) -> None:
165165
pass

0 commit comments

Comments
 (0)