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:
parent
590be1a7ff
commit
6f0f36aab0
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue