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 committed 2018-10-06 10:41:41 -05:00
1 parent 590be1a7ff
commit 6f0f36aab0
1 file changed
+3 -1
+3 -1
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):