@tempdir
def test_full():
 _system_call('virtualenv', '--no-site-packages', '.')
 _system_call('bin/easy_install', '-q', 'distribute==dev')
 _system_call('bin/easy_install', '-qU', 'distribute==dev')
 _system_call('bin/easy_install', '-q', 'pip')
 _system_call('bin/pip', 'install', '-q', 'zc.buildout')
 with open('buildout.cfg', 'w') as f:
  f.write(SIMPLE_BUILDOUT)
 with open('bootstrap.py', 'w') as f:
  f.write(urlopen(BOOTSTRAP).read())
 _system_call('bin/python', 'bootstrap.py', '--distribute')
 _system_call('bin/buildout', '-q')
 eggs = os.listdir('eggs')
 eggs.sort()
 assert (len(eggs) == 3)
 assert eggs[0].startswith('distribute')
 assert (eggs[1:] == ['extensions-0.3-py2.6.egg', 'zc.recipe.egg-1.2.2-py2.6.egg'])

@ tempdir def test_full ( ) : _system_call ( 'virtualenv' , '--no-site-packages' , '.' ) _system_call ( 'bin/easy_install' , '-q' , 'distribute==dev' ) _system_call ( 'bin/easy_install' , '-qU' , 'distribute==dev' ) _system_call ( 'bin/easy_install' , '-q' , 'pip' ) _system_call ( 'bin/pip' , 'install' , '-q' , 'zc.buildout' ) with open ( 'buildout.cfg' , 'w' ) as f : f . write ( SIMPLE_BUILDOUT ) with open ( 'bootstrap.py' , 'w' ) as f : f . write ( urlopen ( BOOTSTRAP ) . read ( ) ) _system_call ( 'bin/python' , 'bootstrap.py' , '--distribute' ) _system_call ( 'bin/buildout' , '-q' ) eggs = os . listdir ( 'eggs' ) eggs . sort ( ) assert ( len ( eggs ) == 3 ) assert eggs [ 0 ] . startswith ( 'distribute' ) assert ( eggs [ 1 : ] == [ 'extensions-0.3-py2.6.egg' , 'zc.recipe.egg-1.2.2-py2.6.egg' ] )
virtualenv + pip + buildout .