def test_install_pythonbrew():
    from pythonbrew.installer import install_pythonbrew
    install_pythonbrew()
Ejemplo n.º 2
0
from pythonbrew.installer import install_pythonbrew, upgrade_pythonbrew, systemwide_pythonbrew
from optparse import OptionParser
if __name__ == "__main__":
    parser = OptionParser()
    parser.add_option('-U',
                      '--upgrade',
                      dest="upgrade",
                      action="store_true",
                      default=False,
                      help="Upgrade.")
    parser.add_option('--systemwide',
                      dest="systemwide",
                      action="store_true",
                      default=False,
                      help="systemwide install.")
    (opt, arg) = parser.parse_args()
    if opt.systemwide:
        systemwide_pythonbrew()
    elif opt.upgrade:
        upgrade_pythonbrew()
    else:
        install_pythonbrew()
Ejemplo n.º 3
0
from pythonbrew.installer import install_pythonbrew, upgrade_pythonbrew, systemwide_pythonbrew
from optparse import OptionParser
if __name__ == "__main__":
    parser = OptionParser()
    parser.add_option(
        '-U', '--upgrade',
        dest="upgrade",
        action="store_true",
        default=False,
        help="Upgrade."
    )
    parser.add_option(
        '--systemwide',
        dest="systemwide",
        action="store_true",
        default=False,
        help="systemwide install."
    )
    (opt, arg) = parser.parse_args()
    if opt.systemwide:
        systemwide_pythonbrew()
    elif opt.upgrade:
        upgrade_pythonbrew()
    else:
        install_pythonbrew()
Ejemplo n.º 4
0
def _install_pythonbrew():
    from pythonbrew.installer import install_pythonbrew
    install_pythonbrew()