def METHOD_NAME(self):
    self._backup_platform = sys.platform
    self._backup_get_config_var = sysconfig.get_config_var
    class CompilerWrapper(UnixCCompiler):
        def rpath_foo(self):
            return self.runtime_library_dir_option('/foo')
    self.cc = CompilerWrapper()