Exemplo n.º 1
0
 def execute_makefile(self, path_to_makefile):
     if isinstance(path_to_makefile, GnuMakefile):
         path = path_to_makefile.makefile_dir
     else:
         path = path_to_makefile
     log.execute("make in %s" % (path,))
     returncode, stdout, stderr = _run_subprocess(self.make_cmd, ["-C", str(path)])
     self._handle_error(returncode, stdout, stderr, path.join("make"))
Exemplo n.º 2
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"))
Exemplo n.º 3
0
 def execute_makefile(self, path_to_makefile):
     if isinstance(path_to_makefile, GnuMakefile):
         path = path_to_makefile.makefile_dir
     else:
         path = path_to_makefile
     log.execute('make in %s' % (path,))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', ['make', '-C', str(path)])
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 4
0
 def execute_makefile(self, path_to_makefile):
     if isinstance(path_to_makefile, GnuMakefile):
         path = path_to_makefile.makefile_dir
     else:
         path = path_to_makefile
     log.execute('make in %s' % (path,))
     returncode, stdout, stderr = _run_subprocess('/scratchbox/login', ['make', '-C', str(path)])
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 5
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(
         self.make_cmd, ['-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 6
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(
         self.make_cmd, ['-C', str(path)] + extra_opts)
     self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 7
0
    def execute_makefile(self, path_to_makefile):
        if isinstance(path_to_makefile, NMakefile):
            path = path_to_makefile.makefile_dir
        else:
            path = path_to_makefile
        log.execute('make in %s' % (path, ))
        oldcwd = path.chdir()
        try:
            returncode, stdout, stderr = _run_subprocess(
                'nmake', ['/f', str(path.join('Makefile'))])
        finally:
            oldcwd.chdir()

        self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 8
0
    def execute_makefile(self, path_to_makefile, extra_opts=[]):
        if isinstance(path_to_makefile, NMakefile):
            path = path_to_makefile.makefile_dir
        else:
            path = path_to_makefile
        log.execute('make %s in %s' % (" ".join(extra_opts), path))
        oldcwd = path.chdir()
        try:
            returncode, stdout, stderr = _run_subprocess(
                'nmake',
                ['/nologo', '/f', str(path.join('Makefile'))] + extra_opts)
        finally:
            oldcwd.chdir()

        self._handle_error(returncode, stdout, stderr, path.join('make'))
Exemplo n.º 9
0
    def execute_makefile(self, path_to_makefile, extra_opts=[]):
        if isinstance(path_to_makefile, NMakefile):
            path = path_to_makefile.makefile_dir
        else:
            path = path_to_makefile
        log.execute("make %s in %s" % (" ".join(extra_opts), path))
        oldcwd = path.chdir()
        try:
            returncode, stdout, stderr = _run_subprocess(
                "nmake", ["/nologo", "/f", str(path.join("Makefile"))] + extra_opts
            )
        finally:
            oldcwd.chdir()

        self._handle_error(returncode, stdout, stderr, path.join("make"))
Exemplo n.º 10
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, stderr, stdout, outname)
Exemplo n.º 11
0
Arquivo: maemo.py Projeto: njues/Sypy
 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)
Exemplo n.º 12
0
 def spawn_and_log(cmd, *args, **kwds):
     log.execute(" ".join(cmd))
     return spawn(cmd, *args, **kwds)
Exemplo n.º 13
0
 def spawn_and_log(cmd, *args, **kwds):
     log.execute(' '.join(cmd))
     return spawn(cmd, *args, **kwds)