Ver código fonte

Check for cookiecutter before running

Steven Silvester 4 anos atrás
pai
commit
709298a8c5
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      jupyterlab/upgrade_extension.py

+ 5 - 0
jupyterlab/upgrade_extension.py

@@ -7,6 +7,11 @@ import shutil
 import sys
 import subprocess
 
+try:
+    import cookiecutter
+except ImportError:
+    raise RuntimeError("Please install cookiecutter")
+
 
 COOKIECUTTER_BRANCH = "3.0"