File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,11 @@ def _distutils_install():
152152        d  =  dist .Distribution ({"script_args" : "--no-user-cfg" })  # conf files not parsed so they do not hijack paths 
153153        if  hasattr (sys , "_framework" ):
154154            sys ._framework  =  None   # disable macOS static paths for framework 
155-         i  =  d .get_command_obj ("install" , create = True )
155+ 
156+         with  warnings .catch_warnings ():  # disable warning for PEP-632 
157+             warnings .simplefilter ("ignore" )
158+             i  =  d .get_command_obj ("install" , create = True )
159+ 
156160        i .prefix  =  os .sep   # paths generated are relative to prefix that contains the path sep, this makes it relative 
157161        i .finalize_options ()
158162        result  =  {key : (getattr (i , "install_{}" .format (key ))[1 :]).lstrip (os .sep ) for  key  in  SCHEME_KEYS }
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments