Example #1
0
    def do_build(self, context, cwd):
        """Calls do_build() in the build script.

        Args:
            context (BuildContext): Context to pass to the build script.
        """
        utils.flush_output()
        cwd.pushd(context.workspace.build_dir)
        self._do_build(context)
        cwd.popd()
Example #2
0
    def do_build(self, context, cwd):
        """Calls do_build() in the build script.

        Args:
            context (BuildContext): Context to pass to the build script.
        """
        utils.flush_output()
        cwd.pushd(context.workspace.build_dir)
        self._do_build(context)
        cwd.popd()
Example #3
0
 def _prepare_cmd(self, cmd, kwargs):
     shell = kwargs.get('shell', False)
     cmd_string = self._cmd_to_string(cmd, shell)
     print('+ ' + cmd_string, file=self._executor.console)
     if shell:
         kwargs.update(self._shell_call_opts)
     if not 'cwd' in kwargs:
         kwargs['cwd'] = self._cwd.cwd
     if not 'env' in kwargs:
         kwargs['env'] = self._env
     utils.flush_output()
     return cmd_string, kwargs
Example #4
0
 def _prepare_cmd(self, cmd, kwargs):
     shell = kwargs.get('shell', False)
     cmd_string = self._cmd_to_string(cmd, shell)
     print('+ ' + cmd_string, file=self._executor.console)
     if shell:
         kwargs.update(self._shell_call_opts)
     if not 'cwd' in kwargs:
         kwargs['cwd'] = self._cwd.cwd
     if not 'env' in kwargs:
         kwargs['env'] = self._env
     utils.flush_output()
     return cmd_string, kwargs