Browse Source

Move version check script

Steven Silvester 7 years ago
parent
commit
d64967de88
4 changed files with 4 additions and 3 deletions
  1. 1 0
      MANIFEST.in
  2. 1 2
      jupyterlab/commands.py
  3. 0 0
      jupyterlab/node-version-check.js
  4. 2 1
      setupbase.py

+ 1 - 0
MANIFEST.in

@@ -10,6 +10,7 @@ include setupbase.py
 include jupyterlab/package.app.json
 include jupyterlab/webpack.config.js
 include jupyterlab/index.app.js
+include jupyterlab/node-version-check.js
 include jupyterlab/released_packages.txt
 
 prune jupyterlab/tests

+ 1 - 2
jupyterlab/commands.py

@@ -225,8 +225,7 @@ def check_node():
     """Check for the existence of node and whether it is the right version.
     """
     try:
-        scripts = os.path.abspath(os.path.join(here, '../scripts'))
-        run(['node', 'node-version-check.js'], cwd=scripts)
+        run(['node', 'node-version-check.js'], cwd=here)
     except Exception:
         raise ValueError('`node` version 5+ is required, see extensions in README')
 

+ 0 - 0
scripts/node-version-check.js → jupyterlab/node-version-check.js


+ 2 - 1
setupbase.py

@@ -76,7 +76,8 @@ def find_package_data():
     """
     return {
         'jupyterlab': ['build/*', 'index.app.js', 'webpack.config.js',
-                       'package.app.json', 'released_packages.txt']
+                       'package.app.json', 'released_packages.txt',
+                       'node-version-check.js']
     }