def _build(self):
    version_info = self._get_package_version()
    log.info(u'building assets for {} v{} (build {})'.format(self.distribution.get_name(), (version_info['version'] or 'UNKNOWN'), (version_info['build'] or 'UNKNOWN')))
    if ((not version_info['version']) or (not version_info['build'])):
        log.fatal('Could not determine sentry version or build')
        sys.exit(1)
    try:
        self._build_static()
    except Exception:
        traceback.print_exc()
        log.fatal("unable to build Sentry's static assets!")
        sys.exit(1)
    log.info('writing version manifest')
    manifest = self._write_version_file(version_info)
    log.info(u'recorded manifest\n{}'.format(json.dumps(manifest, indent=2)))
def _build(self):
    version_info = self._get_package_version()
    log.info(u'building assets for {} v{} (build {})'.format(self.distribution.get_name(), (version_info['version'] or 'UNKNOWN'), (version_info['build'] or 'UNKNOWN')))
    if ((not version_info['version']) or (not version_info['build'])):
        log.fatal('Could not determine sentry version or build')
        sys.exit(1)
    try:
        self._build_static()
    except Exception:
        traceback.print_exc()
        log.fatal("unable to build Sentry's static assets!")
        sys.exit(1)
    log.info('writing version manifest')
    manifest = self._write_version_file(version_info)
    log.info(u'recorded manifest\n{}'.format(json.dumps(manifest, indent=2)))