From 5a39a74a0a8ad41a3392e79dd9e966d0b76902df Mon Sep 17 00:00:00 2001 From: Nicholas Devenish Date: Fri, 13 Sep 2024 10:33:15 +0100 Subject: [PATCH] Handle skipped patches on macos --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 270fda3..bca5071 100644 --- a/setup.py +++ b/setup.py @@ -151,7 +151,10 @@ def build(setup_kwargs: Dict[str, Any]) -> None: except subprocess.CalledProcessError as e: print(e.output) # We want to ignore this if it was a case of already applied - if "Skipping patch" not in e.output: + if ( + "Skipping patch" not in e.output + and "Ignoring previously applied" not in e.output + ): raise setup_kwargs.update({"ext_modules": extensions})