diff --git a/easybuild/easyblocks/o/openbabel.py b/easybuild/easyblocks/o/openbabel.py index cba0685995..89f3dddce9 100644 --- a/easybuild/easyblocks/o/openbabel.py +++ b/easybuild/easyblocks/o/openbabel.py @@ -54,6 +54,12 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.with_python = False + def prepare_step(self, *args, **kwargs): + """Prepare step, modified to ensure install dir is deleted before building""" + super().prepare_step(*args, **kwargs) + # Needs to delete the install dir to avoid segfaults when doing the pybind tests + self.make_installdir() + def configure_step(self): """Custom configure procedure for OpenBabel."""