Skip to content

Commit 4687f94

Browse files
authored
Merge pull request #84 from boegel/raw
use raw string for regex in `pre_configure_hook_cmake_system`
2 parents 56ada04 + f9cf149 commit 4687f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eb_hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ def pre_configure_hook_cmake_system(self, *args, **kwargs):
954954
if is_system_toolchain(self.toolchain.name):
955955
self.log.info("Removing configure options that require ncurses static libraries...")
956956
self.log.info(f"Original configopts value: {self.cfg['configopts']}")
957-
regex = re.compile("-DCURSES_[A-Z]+_LIBRARY=\$EBROOTNCURSES/lib/lib[a-z]+\.a")
957+
regex = re.compile(r"-DCURSES_[A-Z]+_LIBRARY=\$EBROOTNCURSES/lib/lib[a-z]+\.a")
958958
self.cfg['configopts'] = regex.sub(self.cfg['configopts'], '')
959959
self.log.info(f"Updated configopts value: {self.cfg['configopts']}")
960960
else:

0 commit comments

Comments
 (0)