def app_pack_compiled(app, request, raise_ex=False):
 try:
  filename = apath(('../deposit/%s.w2p' % app), request)
  w2p_pack(filename, apath(app, request), compiled=True)
  return filename
 except Exception as e:
  if raise_ex:
   raise
  return None

def app_pack_compiled ( app , request , raise_ex = False ) : try : filename = apath ( ( '../deposit/%s.w2p' % app ) , request ) w2p_pack ( filename , apath ( app , request ) , compiled = True ) return filename except Exception as e : if raise_ex : raise return None
builds a w2p bytecode-compiled package for the application args: app: application name request: the global request object returns: filename of the w2p file or none on error .