Ejemplo n.º 1
0
 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
     log.execute('make %s in %s' % (" ".join(extra_opts), path))
     returncode, stdout, stderr = _run_subprocess(
         '/scratchbox/login', ['make', '-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Ejemplo n.º 2
0
Archivo: maemo.py Proyecto: sbw111/lab4
 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
     log.execute('make %s in %s' % (" ".join(extra_opts), path))
     returncode, stdout, stderr = _run_subprocess(
         '/scratchbox/login', ['make', '-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Ejemplo n.º 3
0
Archivo: arm.py Proyecto: Darriall/pypy
 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
     log.execute('sb2 %s make %s in %s' % (' '.join(SB2ARGS), " ".join(extra_opts), path))
     returncode, stdout, stderr = _run_subprocess(
         'sb2', SB2ARGS + ['make', '-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Ejemplo n.º 4
0
 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
     log.execute('sb2 %s make %s in %s' % (' '.join(SB2ARGS), " ".join(extra_opts), path))
     returncode, stdout, stderr = _run_subprocess(
         'sb2', SB2ARGS + ['make', '-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Ejemplo n.º 5
0
Archivo: arm.py Proyecto: sbw111/lab4
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = ' '.join(SB2ARGS) + ' ' + str(executable) + ' ' + args
         log.message('executing sb2 ' + args)
     else:
         args = SB2ARGS + [str(executable)] + args
         log.message('executing sb2 ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('sb2', args, env)
     return ExecutionResult(returncode, stdout, stderr)
Ejemplo n.º 6
0
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = str(executable) + ' ' + args
         log.message('executing /scratchbox/login ' + args)
     else:
         args = [str(executable)] + args
         log.message('executing /scratchbox/login ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)
Ejemplo n.º 7
0
Archivo: arm.py Proyecto: Darriall/pypy
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = ' '.join(SB2ARGS) + ' ' + str(executable) + ' ' + args
         log.message('executing sb2 ' + args)
     else:
         args = SB2ARGS + [str(executable)] + args
         log.message('executing sb2 ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('sb2', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)
Ejemplo n.º 8
0
Archivo: maemo.py Proyecto: sbw111/lab4
 def execute(self, executable, args=[], env=None):
     if isinstance(args, str):
         args = str(executable) + ' ' + args
         log.message('executing /scratchbox/login ' + args)
     else:
         args = [str(executable)] + args
         log.message('executing /scratchbox/login ' + ' '.join(args))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args,
                                                  env)
     return ExecutionResult(returncode, stdout, stderr)
Ejemplo n.º 9
0
 def _execute_c_compiler(self, cc, args, outname):
     log.execute('/scratchbox/login ' + cc + ' ' + ' '.join(args))
     args = [cc] + args
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args)
     self._handle_error(returncode, stdout, stderr, outname)
Ejemplo n.º 10
0
Archivo: arm.py Proyecto: Darriall/pypy
 def _execute_c_compiler(self, cc, args, outname, cwd=None):
     log.execute('sb2 ' + ' '.join(SB2ARGS) + ' ' + cc + ' ' + ' '.join(args))
     args = SB2ARGS + [cc] + args
     returncode, stdout, stderr = _run_subprocess('sb2', args)
     self._handle_error(returncode, stderr, stdout, outname)
Ejemplo n.º 11
0
Archivo: maemo.py Proyecto: sbw111/lab4
 def _execute_c_compiler(self, cc, args, outname):
     log.execute('/scratchbox/login ' + cc + ' ' + ' '.join(args))
     args = [cc] + args
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', args)
     self._handle_error(returncode, stdout, stderr, outname)
Ejemplo n.º 12
0
 def _execute_c_compiler(self, cc, args, outname, cwd=None):
     log.execute('sb2 ' + ' '.join(SB2ARGS) + ' ' + cc + ' ' + ' '.join(args))
     args = SB2ARGS + [cc] + args
     returncode, stdout, stderr = _run_subprocess('sb2', args)
     self._handle_error(returncode, stderr, stdout, outname)