Add 'verbose' flag for installing custom python versions via pythonz

This commit is contained in:
Lance Edgar 2019-01-25 17:57:24 -06:00
parent dcb2282172
commit 0199902118

View file

@ -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):