@tempdir
def test_virtualenv():
 purelib = os.path.abspath(Template(PURELIB).substitute(**_VARS))
 _system_call('virtualenv', '--no-site-packages', '.', '--distribute')
 _system_call('bin/easy_install', 'distribute==dev')
 site_pkg = os.listdir(purelib)
 site_pkg.sort()
 assert ('distribute' in site_pkg[0])
 easy_install = os.path.join(purelib, 'easy-install.pth')
 with open(easy_install) as f:
  res = f.read()
 assert ('distribute' in res)
 assert ('setuptools' not in res)

@ tempdir def test_virtualenv ( ) : purelib = os . path . abspath ( Template ( PURELIB ) . substitute ( ** _VARS ) ) _system_call ( 'virtualenv' , '--no-site-packages' , '.' , '--distribute' ) _system_call ( 'bin/easy_install' , 'distribute==dev' ) site_pkg = os . listdir ( purelib ) site_pkg . sort ( ) assert ( 'distribute' in site_pkg [ 0 ] ) easy_install = os . path . join ( purelib , 'easy-install.pth' ) with open ( easy_install ) as f : res = f . read ( ) assert ( 'distribute' in res ) assert ( 'setuptools' not in res )
virtualenv with distribute .