Пример #1
0
def main():
    action = get_action()

    if not action:
        sys.exit(0)
        return

    if action:
        func = find_action(action)
        if func:
            func(get_tail())
        else:
            run(sys.argv[1:])
Пример #2
0
def main(args):
    args = get_args(args)

    venv = path(settings['VENV'])

    if args.clean and venv.isdir():
        venv.rmtree()

    run(['virtualenv', venv.abspath()])

    # TODO: Allow custom requirement class here
    reqs = Requirements()
    reqs.install(args.index)
Пример #3
0
def main(args):
    args = get_args(args)

    venv = path(settings['VENV'])

    if args.clean and venv.isdir():
        venv.rmtree()

    run(['virtualenv', venv.abspath()])

    # TODO: Allow custom requirement class here
    reqs = Requirements()
    reqs.install(args.index)