Skip to content

Commit

Permalink
Make compilation optional in package build process
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelwedler committed Apr 26, 2021
1 parent 8397e3b commit 876547e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ def finalize_options(self):
def run(self):
yarn = find_executable('yarn')
if not yarn:
raise RuntimeError('Yarn not found. Aborting')
self.announce(
'Yarn not found. Skipping webUI compilation',
level=distutils.log.WARN, # pylint: disable=no-member
)
return

yarn_run = 'build:prod'
if self.dev is not None:
Expand Down

0 comments on commit 876547e

Please sign in to comment.