def execute_makefile(self, path_to_makefile, extra_opts=[]): if isinstance(path_to_makefile, GnuMakefile): path = path_to_makefile.makefile_dir else: path = path_to_makefile returncode, stdout, stderr = _run_subprocess( '/scratchbox/login', ['make', '-C', str(path)] + extra_opts) self._handle_error(returncode, stdout, stderr, path.join('make'))
def execute(self, executable, args=[], env=None): if isinstance(args, str): args = str(executable) + ' ' + args else: args = [str(executable)] + args returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args, env) return ExecutionResult(returncode, stdout, stderr)
def _execute_c_compiler(self, cc, args, outname): args = [cc] + args returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args) self._handle_error(returncode, stdout, stderr, outname)