def METHOD_NAME(self, *args, **kwargs):
    """
    Prepare for using OpenMPI library in toolchain environment
    """
    super(OpenMPI, self).METHOD_NAME(*args, **kwargs)
    # OpenMPI 2.x trips if path specified in $TMPDIR is too long
    # see https://www.open-mpi.org/faq/?category=osx#startup-errors-with-open-mpi-2.0.x
    self.orig_tmpdir = os.environ.get('TMPDIR')
    ompi_ver = self.get_software_version(self.MPI_MODULE_NAME)[0]
    if LooseVersion(ompi_ver) >= LooseVersion('2.0') and LooseVersion(ompi_ver) < LooseVersion('3.0'):
        if len(self.orig_tmpdir) > 40:
            tmpdir = tempfile.mkdtemp(prefix='/tmp/')
            env.setvar('TMPDIR', tmpdir)
            warn_msg = "Long $TMPDIR path may cause problems with OpenMPI 2.x, using shorter path: %s" % tmpdir
            self.log.warning(warn_msg)
            print_warning(warn_msg, silent=build_option('silent'))