File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -237,11 +237,18 @@ def all():
237237copy_if_out_of_date ('../INSTALL' , 'users/installing.rst' )
238238
239239# Create the examples symlink, if it doesn't exist 
240- if  not  os .path .exists ('mpl_examples' ):
241-     if  hasattr (os , 'symlink' ):
242-         os .symlink ('../examples' , 'mpl_examples' )
243-     else :
244-         shutil .copytree ('../examples' , 'mpl_examples' )
240+ 
241+ required_symlinks  =  [
242+     ('mpl_examples' , '../examples/' ),
243+     ('mpl_toolkits/axes_grid/examples' , '../../../examples/axes_grid/' )
244+     ]
245+ 
246+ for  link , target  in  required_symlinks :
247+     if  not  os .path .exists (link ):
248+         if  hasattr (os , 'symlink' ):
249+             os .symlink (target , link )
250+         else :
251+             shutil .copytree (os .path .join (link , '..' , target ), link )
245252
246253if  len (sys .argv )> 1 :
247254    if  '--small'  in  sys .argv [1 :]:
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments