Пример #1
0
 def test_devinst_gets_readonly_deps(self):
     from doulado import script
     di = script.devinstall
     di.configure_mock(return_value=True)
     args = stuf.fixedstuf(config='egg:doulado#doulado/devinst.yml',
                           read_only=True)
     self.true_or_wat(script.devinst, args)
     deps = stuf.fixedstuf(di.call_args[0][0])
     assert 'bambino' in deps 
     assert deps['bambino'].startswith('git://'), deps.bambino
Пример #2
0
def devinstall(deps=None):
    deps = stuf.fixedstuf(deps)
    venv = path(os.environ['VIRTUAL_ENV'])
    srcdir = venv / 'src'
    if not srcdir.exists():
        srcdir.mkdir()
    with pushd(srcdir):
        install_zmq(deps.zmq)
        fab.local('pip install distribute==0.6.14')
        check_and_install('cython', 'pip install Cython')
        check_and_install('gevent', 'pip install -e git+%s#egg=gevent' %deps.gevent)
        check_and_install('zmq', "pip install pyzmq --install-option='--zmq=%s'" %venv)
        check_and_install('gevent_zmq', install_gz, repo=deps.gevent_zmq)
        clone_develop('doula', repo=deps.doula)
        clone_develop('bambino', repo=deps.bambino)