From: Debian Science Team Date: Mon, 21 Oct 2024 18:43:11 +0000 (+0100) Subject: Don't crash on clean X-Git-Tag: archive/raspbian/2.2.3+dfsg-7+rpi1~1^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9dedddd599fc6d8e07d7f861afdf0ccc3595b15b;p=pandas.git Don't crash on clean Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name unbreak_clean.patch --- diff --git a/setup.py b/setup.py index c7c76d0f..42b1cb3b 100755 --- a/setup.py +++ b/setup.py @@ -152,14 +152,14 @@ class CleanCommand(Command): ".orig", ): self._clean_me.append(filepath) - self._clean_trees.append(pjoin(root, d) for d in dirs if d == "__pycache__") + self._clean_trees.extend([pjoin(root, d) for d in dirs if d == "__pycache__"]) # clean the generated pxi files for pxifile in _pxifiles: pxifile_replaced = pxifile.replace(".pxi.in", ".pxi") self._clean_me.append(pxifile_replaced) - self._clean_trees.append(d for d in ("build", "dist") if os.path.exists(d)) + self._clean_trees.extend([d for d in ("build", "dist") if os.path.exists(d)]) def finalize_options(self) -> None: pass