mirror of
				https://github.com/k4yt3x/video2x.git
				synced 2025-11-03 22:21:37 +01:00 
			
		
		
		
	Revert "Added uninstall function to setup"
This reverts commit d25857a1783b15b185444d38e15805d4c27d96ae.
This commit is contained in:
		
							parent
							
								
									53f5192896
								
							
						
					
					
						commit
						d4d485e132
					
				@ -87,7 +87,6 @@ class Video2xSetup:
 | 
			
		||||
    def _install_python_requirements(self):
 | 
			
		||||
        """ Read requirements.txt and return its content
 | 
			
		||||
        """
 | 
			
		||||
        pip_uninstall('requirements.txt')
 | 
			
		||||
        pip_install('requirements.txt')
 | 
			
		||||
 | 
			
		||||
    def _cleanup(self):
 | 
			
		||||
@ -202,19 +201,12 @@ def download(url, save_path, chunk_size=4096):
 | 
			
		||||
 | 
			
		||||
def pip_install(file):
 | 
			
		||||
    """ Install python package via python pip module
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    pip.main() is not available after pip 9.0.1, thus
 | 
			
		||||
    pip module is not used in this case.
 | 
			
		||||
    """
 | 
			
		||||
    return subprocess.run([sys.executable, '-m', 'pip', 'install', '-U', '-r', file]).returncode
 | 
			
		||||
 | 
			
		||||
def pip_uninstall(file):
 | 
			
		||||
    """ Uninstall python package via python pip module
 | 
			
		||||
    
 | 
			
		||||
    pip.main() is not available after pip 9.0.1, thus
 | 
			
		||||
    pip module is not used in this case.
 | 
			
		||||
    """
 | 
			
		||||
    return subprocess.run([sys.executable, '-m', 'pip', 'uninstall', '-r', file, '-y']).returncode
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    try:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user