Пример #1
0
def update():
    """
    updates a virtualenv (pip install requirements.txt)
    """
    do_run(
        'cd %(path)s; bin/pip install -r requirements.txt --upgrade --no-deps'
        % config.sites["main"].deployment)
Пример #2
0
def create():
    """
    creates a virtualenv and calls update
    """
    do_run('cd %(path)s; virtualenv . --system-site-packages --setuptools' % config.sites["main"].deployment)
    update()
    # this is ugly. I know. But it seems that on first run, pip does not
    # install the correct version of packages that are pulled directly from
    # git. Only the second time around it uses the correct one.
    update()
Пример #3
0
def create():
    """
    creates a virtualenv and calls update
    """
    do_run('cd %(path)s; virtualenv . --system-site-packages --setuptools' %
           config.sites["main"].deployment)
    update()
    # this is ugly. I know. But it seems that on first run, pip does not
    # install the correct version of packages that are pulled directly from
    # git. Only the second time around it uses the correct one.
    update()
Пример #4
0
def update():
    """
    updates a virtualenv (pip install requirements.txt)
    """
    do_run('cd %(path)s; bin/pip install -r requirements.txt' % config.sites["main"].deployment)
Пример #5
0
def create():
    """
    creates a virtualenv and calls update
    """
    do_run('cd %(path)s; virtualenv . ' % config.sites["main"].deployment)
    update()
Пример #6
0
def run():
    """
    runs buildout
    """
    # TODO: Refactor to use utils.config
    do_run('cd %(path)s;./bin/buildout -c %(buildout_cfg)s' % env)
Пример #7
0
def create():
    """
    creates a virtualenv and calls update
    """
    do_run('cd %(path)s; virtualenv . ' % config.sites["main"].deployment)
    update()
Пример #8
0
def run():
    """
    runs buildout
    """
    # TODO: Refactor to use utils.config
    do_run('cd %(path)s;./bin/buildout -c %(buildout_cfg)s' % env)