Browse Source

Clarify setup.py jsdeps step.

Jason Grout 9 years ago
parent
commit
5aa5632ea2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      setup.py

+ 2 - 2
setup.py

@@ -103,8 +103,8 @@ class NPM(Command):
 
         if self.should_run_npm_install():
             log.info("Installing build dependencies with npm.  This may take a while...")
-            # remove just jupyterlab
-            shutil.rmtree(os.path.join(node_root, 'node_modules', 'jupyterlab'), ignore_errors=True)
+            # remove just jupyterlab so that it is always updated
+            shutil.rmtree(os.path.join(self.node_modules, 'jupyterlab'), ignore_errors=True)
             check_call(['npm', 'install'], cwd=node_root, stdout=sys.stdout, stderr=sys.stderr)
             check_call(['npm', 'run', 'build'], cwd=node_root, stdout=sys.stdout, stderr=sys.stderr)
             os.utime(self.node_modules, None)