Run npm run build before packaging our wheels
import os
from setuptools import setup, find_packages
+import subprocess
# get the version
version_ns = {}
@@ -8,6 +9,10 @@ here = os.path.dirname(__file__)
with open(os.path.join(here, 'binderhub', '_version.py')) as f:
exec(f.read(), {}, version_ns)
+# Build our js and css files before packaging
+subprocess.check_call(['npm', 'install'])
+subprocess.check_call(['npm', 'run', 'webpack'])
+
setup(
name='binderhub',
version=version_ns['__version__'],
