def install(editable=True):
    """Install this component (or remove and reinstall)"""

    try:
        __import__(package['name'])
    except ImportError:
        pass
    else:
        run("pip uninstall --quiet -y %s" % package['name'], warn=True)

    cmd = "pip install --quiet "
    cmd += "-e ." if editable else "."

    run(cmd, warn=True)
def install ( editable = True ) : try : __import__ ( package [ 'name' ] ) except ImportError : pass else : run ( "pip uninstall --quiet -y %s" % package [ 'name' ] , warn = True ) cmd = "pip install --quiet " cmd += "-e ." if editable else "." run ( cmd , warn = True )
Install this component (or remove and reinstall)