Jelajahi Sumber

Remove version check from labextensions for now

Steven Silvester 8 tahun lalu
induk
melakukan
aef4248bbd
1 mengubah file dengan 0 tambahan dan 14 penghapusan
  1. 0 14
      jupyterlab/labextensions.py

+ 0 - 14
jupyterlab/labextensions.py

@@ -27,8 +27,6 @@ from traitlets.utils.importstring import import_item
 
 from tornado.log import LogFormatter
 
-from .semver import satisfies
-
 
 # Constants for pretty print extension listing function.
 # Window doesn't support coloring in the commandline
@@ -499,18 +497,6 @@ def validate_labextension_folder(name, full_dest, logger=None):
                 if not os.path.exists(path):
                     has_files.append("File in manifest does not exist: {}".format(path))
 
-        for (mod, deps) in manifest.get('modules', {}).items():
-            # ignore jupyterlab modules since
-            # they are only semver compatibile with their own version
-            if mod.startswith('jupyterlab@'):
-                continue
-            for dep in deps:
-                if dep.startswith('jupyterlab@'):
-                    dep = dep.split('/')[0].split('@')[-1]
-                    if not satisfies(__version__, dep, False):
-                        version_compatible.append('Expects JupyterLab version %s from packaged module %s'%(dep, mod))
-                        break
-
     indent = "        "
     subindent = indent + "    "
     entry_msg = indent + u"{} has entry point in manifest"