File tree Expand file tree Collapse file tree 3 files changed +9135
-1
lines changed Expand file tree Collapse file tree 3 files changed +9135
-1
lines changed Original file line number Diff line number Diff line change 5
5
"backbone" : " components/backbone#~1.2" ,
6
6
"bootstrap" : " components/bootstrap#~3.3" ,
7
7
"bootstrap-tour" : " 0.9.0" ,
8
- "codemirror" : " components/codemirror#~5.16 " ,
8
+ "codemirror" : " components/codemirror#~5.22.2 " ,
9
9
"es6-promise" : " ~1.0" ,
10
10
"font-awesome" : " components/font-awesome#~4.2.0" ,
11
11
"google-caja" : " 5669" ,
Original file line number Diff line number Diff line change @@ -375,6 +375,15 @@ def npm_components(self):
375
375
shutil .rmtree (bower_pkg )
376
376
shutil .copytree (npm_pkg , bower_pkg )
377
377
378
+ def patch_codemirror (self ):
379
+ """Patch CodeMirror until https://github.com/codemirror/CodeMirror/issues/4454 is resolved"""
380
+
381
+ try :
382
+ shutil .copyfile ('tools/patches/codemirror.js' , 'notebook/static/components/codemirror/lib/codemirror.js' )
383
+ except OSError as e :
384
+ print ("Failed to patch codemirror.js: %s" % e , file = sys .stderr )
385
+ raise
386
+
378
387
def run (self ):
379
388
if not self .should_run ():
380
389
print ("bower dependencies up to date" )
@@ -398,6 +407,7 @@ def run(self):
398
407
print ("Failed to run bower: %s" % e , file = sys .stderr )
399
408
print ("You can install js dependencies with `npm install`" , file = sys .stderr )
400
409
raise
410
+ self .patch_codemirror ()
401
411
self .npm_components ()
402
412
os .utime (self .bower_dir , None )
403
413
# update package data in case this created new files
You can’t perform that action at this time.
0 commit comments