Make sure javascript output is in wheel

The bdist_wheel command isn't putting the javascript files in the
wheels because the files are neither in git nor are they a detected
python package. Add an __init__.py file so that wheel picks them up.

Change-Id: I46b08405a18cdebc81b81651838b83c3e34c0ad5
This commit is contained in:
Monty Taylor 2018-10-06 10:16:44 -05:00
parent 590be1a7ff
commit 6f0f36aab0
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 3 additions and 1 deletions

View File

@ -26,8 +26,10 @@ def _build_javascript():
return
if not os.path.exists('node_modules/.bin/webpack'):
subprocess.check_call(['yarn', 'install', '-d'])
if not os.path.exists('zuul/web/static/status.bundle.js'):
if not os.path.exists('zuul/web/static/status.html'):
subprocess.check_call(['npm', 'run', 'build:dist'])
with open('zuul/web/static/__init__.py', 'w'):
pass
def _from_git(distribution):