49
49
cmd = 'from setuptools.command.easy_install import main; main()'
50
ws = pkg_resources.working_set
53
PYTHONPATH=ws.find(pkg_resources.Requirement.parse('setuptools')).location)
50
ws = pkg_resources.working_set
58
assert subprocess.Popen(
60
['-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout'],
55
assert subprocess.Popen([sys.executable] + ['-c', quote(cmd), '-mqNxd',
56
quote(tmpeggs), 'zc.buildout'],
59
ws.find(pkg_resources.Requirement.parse('setuptools')).location
65
os.P_WAIT, sys.executable, quote(sys.executable),
66
'-c', quote(cmd), '-mqNxd', quote(tmpeggs), 'zc.buildout', env,
65
os.P_WAIT, sys.executable, quote (sys.executable),
66
'-c', quote (cmd), '-mqNxd', quote (tmpeggs), 'zc.buildout',
69
ws.find(pkg_resources.Requirement.parse('setuptools')).location
69
73
ws.add_entry(tmpeggs)