Add 'verbose' flag for installing custom python versions via pythonz
This commit is contained in:
		
							parent
							
								
									dcb2282172
								
							
						
					
					
						commit
						0199902118
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -54,12 +54,13 @@ def install_pythonz(): | |||
|         sudo('/usr/local/src/pythonz/pythonz-install') | ||||
| 
 | ||||
| 
 | ||||
| def install_python(version): | ||||
| def install_python(version, verbose=False): | ||||
|     """ | ||||
|     Install a specific version of python, via pythonz. | ||||
|     """ | ||||
|     if not exists('/usr/local/pythonz/pythons/CPython-{}'.format(version)): | ||||
|         sudo('pythonz install {}'.format(version)) | ||||
|         verbose = '--verbose' if verbose else '' | ||||
|         sudo('pythonz install {} {}'.format(verbose, version)) | ||||
| 
 | ||||
| 
 | ||||
| def install_pip(use_apt=False, eager=True): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar