From f9cf1497ff78f3fe9929c43fbb72cdf17649351a Mon Sep 17 00:00:00 2001 From: Kenneth Hoste Date: Tue, 16 Sep 2025 11:06:39 +0200 Subject: [PATCH] use raw string for regex in pre_configure_hook_cmake_system --- eb_hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eb_hooks.py b/eb_hooks.py index f14e36fb..d8f138e7 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -954,7 +954,7 @@ def pre_configure_hook_cmake_system(self, *args, **kwargs): if is_system_toolchain(self.toolchain.name): self.log.info("Removing configure options that require ncurses static libraries...") self.log.info(f"Original configopts value: {self.cfg['configopts']}") - regex = re.compile("-DCURSES_[A-Z]+_LIBRARY=\$EBROOTNCURSES/lib/lib[a-z]+\.a") + regex = re.compile(r"-DCURSES_[A-Z]+_LIBRARY=\$EBROOTNCURSES/lib/lib[a-z]+\.a") self.cfg['configopts'] = regex.sub(self.cfg['configopts'], '') self.log.info(f"Updated configopts value: {self.cfg['configopts']}") else: