File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change 1515
1616import  os 
1717import  sys 
18+ import  shutil 
1819
1920import  pipes 
2021from  distutils  import  log 
@@ -349,16 +350,6 @@ def should_run_npm(self):
349350            return  True 
350351        return  mtime (self .node_modules ) <  mtime (pjoin (repo_root , 'package.json' ))
351352
352-     def  npm_components (self ):
353-         """Stage npm frontend dependencies into components""" 
354-         for  pkg  in  ['preact' , 'preact-compat' , 'proptypes' ]:
355-             npm_pkg  =  os .path .join (self .node_modules , pkg )
356-             bower_pkg  =  os .path .join (self .bower_dir , pkg )
357-             log .info ("Staging %s -> %s"  %  (npm_pkg , bower_pkg ))
358-             if  os .path .exists (bower_pkg ):
359-                 shutil .rmtree (bower_pkg )
360-             shutil .copytree (npm_pkg , bower_pkg )
361- 
362353    def  patch_codemirror (self ):
363354        """Patch CodeMirror until https://github.com/codemirror/CodeMirror/issues/4454 is resolved""" 
364355
@@ -393,7 +384,6 @@ def run(self):
393384            raise 
394385
395386        self .patch_codemirror ()
396-         self .npm_components ()
397387        os .utime (self .bower_dir , None )
398388        # update package data in case this created new files 
399389        update_package_data (self .distribution )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments