Skip to content

Commit

Permalink
Restore version.json file
Browse files Browse the repository at this point in the history
  • Loading branch information
avirshup committed Aug 10, 2017
1 parent 2051bb0 commit 1abd45e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ def run(self):
env = os.environ.copy()
env['PATH'] = npm_path

vjson = os.path.join(node_root, '.VERSION.json')
with open(vjson, 'w') as vjsonfile:
vjsonfile.write('{"version":"%s"}\n' % VERSION)

if self.should_run_npm_install():
log.info("Installing build dependencies with npm. This may take a while...")
check_call(['npm', 'install'], cwd=node_root, stdout=sys.stdout, stderr=sys.stderr)
Expand Down

0 comments on commit 1abd45e

Please sign in to comment.