<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def buildFromJsbString(self, jsb, nocompressjs=False):
 """ Build from the given config file using ``sencha build``. :param jsb: The JSB config as a string. :param nocompressjs: Compress the javascript? If ``True``, run ``sencha build --nocompress``. """

        tempconffile = 'temp-app.jsb3'
        cmd = ['sencha', 'build', '-p', tempconffile, '-d', self.outdir]
        if nocompressjs:
            cmd.append('--nocompress')
        open(tempconffile, 'w').write(jsb)
        log.info('Running: %s', ' '.join(cmd))
        try:
            call(cmd)
        finally:
            remove(tempconffile)