Skip to content

Commit 876547e

Browse files
committed
Make compilation optional in package build process
1 parent 8397e3b commit 876547e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ def finalize_options(self):
3030
def run(self):
3131
yarn = find_executable('yarn')
3232
if not yarn:
33-
raise RuntimeError('Yarn not found. Aborting')
33+
self.announce(
34+
'Yarn not found. Skipping webUI compilation',
35+
level=distutils.log.WARN, # pylint: disable=no-member
36+
)
37+
return
3438

3539
yarn_run = 'build:prod'
3640
if self.dev is not None:

0 commit comments

Comments
 (0)