Changeset 0199902 in rattail-fabric


Ignore:
Timestamp:
01/25/19 17:57:24 (19 months ago)
Author:
Lance Edgar <ledgar@…>
Branches:
master
Children:
f20c7e4
Parents:
dcb2282
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rattail_fabric/python.py

    rdcb2282 r0199902  
    5555
    5656
    57 def install_python(version):
     57def install_python(version, verbose=False):
    5858    """
    5959    Install a specific version of python, via pythonz.
    6060    """
    6161    if not exists('/usr/local/pythonz/pythons/CPython-{}'.format(version)):
    62         sudo('pythonz install {}'.format(version))
     62        verbose = '--verbose' if verbose else ''
     63        sudo('pythonz install {} {}'.format(verbose, version))
    6364
    6465
Note: See TracChangeset for help on using the changeset viewer.