Commit 02ac49d3 authored by jim's avatar jim

When bootstrapping with a buildout that has develop eggs for buildout

or setuptools, copy the develop eggs to the new buildout's
develop-eggs directory, rather than its eggs directory.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@70602 62d5b8a3-27da-0310-9561-8e5933582275
parent 5674dd73
......@@ -219,7 +219,7 @@ class Buildout(dict):
r = pkg_resources.Requirement.parse(name)
dist = pkg_resources.working_set.find(r)
if dist.precedence == pkg_resources.DEVELOP_DIST:
dest = os.path.join(self['buildout']['eggs-directory'],
dest = os.path.join(self['buildout']['develop-eggs-directory'],
name+'.egg-link')
open(dest, 'w').write(dist.location)
entries.append(dist.location)
......
......@@ -1305,10 +1305,16 @@ Note that a basic setup.cfg was created for us.
>>> ls(sample_bootstrapped, 'bin')
- buildout
>>> ls(sample_bootstrapped, 'eggs')
>>> _ = (ls(sample_bootstrapped, 'eggs'),
... ls(sample_bootstrapped, 'develop-eggs'))
- setuptools-0.6-py2.3.egg
- zc.buildout-1.0-py2.3.egg
(We list both the eggs and develop-eggs diectories because the
buildout or setuptools egg could be installed in the develop-eggs
directory if the original buildout had develop eggs for either
buildout or setuptools.)
Note that the buildout script was installed but not run. To run
the buildout, we'd have to run the installed buildout script.
......
......@@ -170,8 +170,16 @@ def buildoutSetUp(test):
# Use the buildout bootstrap command to create a buildout
zc.buildout.buildout.Buildout(
os.path.join(sample, 'buildout.cfg'),
[('buildout', 'log-level', 'WARNING')]
[('buildout', 'log-level', 'WARNING'),
# trick bootstrap into putting the buildout develop egg
# in the eggs dir.
('buildout', 'develop-eggs-directory', 'eggs'),
]
).bootstrap([])
# Create the develop-eggs dir, which didn't get created the usual
# way due to thr trick above:
os.mkdir(os.path.join(sample, 'develop-eggs'))
def start_server(path):
port, thread = _start_server(path, name=path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment