def _setup(self):
<EOL>if self.queue.path[<NUM_LIT:0>:<NUM_LIT:1>] == b'<STR_LIT:/>':<EOL><INDENT>queue = self.queue<EOL><DEDENT>else:<EOL><INDENT>if self.queue.path[<NUM_LIT:0>:<NUM_LIT:1>] == b'<STR_LIT>':<EOL><INDENT>output = self.check_output('<STR_LIT>' %<EOL>escape_queue(self.queue))<EOL>queue = PosixPath(output.rstrip(b'<STR_LIT:\r\n>'))<EOL><DEDENT>else:<EOL><INDENT>output = self.check_output('<STR_LIT>')<EOL>queue = PosixPath(output.rstrip(b'<STR_LIT:\r\n>')) / self.queue<EOL><DEDENT>logger.debug("<STR_LIT>", queue)<EOL><DEDENT>if not self.setup_runtime:<EOL><INDENT>if self._call('<STR_LIT>', False)[<NUM_LIT:0>] == <NUM_LIT:0>:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>runtime = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>logger.debug("<STR_LIT>")<EOL>runtime = '<STR_LIT:default>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>runtime = self.setup_runtime<EOL><DEDENT>if self.need_runtime is not None and runtime not in self.need_runtime:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>"<STR_LIT>" % runtime)<EOL><DEDENT>logger.info("<STR_LIT>",<EOL>runtime,<EOL>"<STR_LIT>" if self.setup_runtime else "<STR_LIT>",<EOL>self.queue)<EOL>scp_client = self.get_scp_client()<EOL>filename = pkg_resources.resource_filename('<STR_LIT>',<EOL>'<STR_LIT>' % runtime)<EOL>scp_client.put(filename, str(queue), recursive=True)<EOL>logger.debug("<STR_LIT>")<EOL>self.check_call('<STR_LIT>' % shell_escape(queue / '<STR_LIT>'))<EOL>logger.debug("<STR_LIT>")<EOL>self._queue = queue<EOL>return queue<EOL>
Actually installs the runtime.