a
This commit is contained in:
		
					parent
					
						
							
								7c0ccebeb5
							
						
					
				
			
			
				commit
				
					
						1313690094
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -84,9 +84,9 @@ class PipenvOperation(object):
 | 
				
			||||||
    def install(path=".", package_name=None):
 | 
					    def install(path=".", package_name=None):
 | 
				
			||||||
        pip_install_options = "PIP_INSTALL_OPTION=\"-- --jobs=6\""
 | 
					        pip_install_options = "PIP_INSTALL_OPTION=\"-- --jobs=6\""
 | 
				
			||||||
        if package_name:
 | 
					        if package_name:
 | 
				
			||||||
            command = f"{pip_install_options} pipenv install {package_name}"
 | 
					            command = [pip_install_options, "pipenv", "install", package_name]
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            command = f"{pip_install_options} pipenv install"
 | 
					            command = [pip_install_options, "pipenv", "install"]
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            output = subprocess.check_output(command.split(), cwd=path)
 | 
					            output = subprocess.check_output(command.split(), cwd=path)
 | 
				
			||||||
        except subprocess.CalledProcessError as e:
 | 
					        except subprocess.CalledProcessError as e:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue