From 1126d37c50fe0766f97a54a8f10c07990cb1eee9 Mon Sep 17 00:00:00 2001 From: Debian Science Team Date: Fri, 11 Oct 2024 10:18:43 +0100 Subject: [PATCH] Don't crash on clean Author: Rebecca N. Palmer Forwarded: no Gbp-Pq: Name unbreak_clean.patch --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2