Commit b7a2b019 authored by jim's avatar jim

Fixed egg-copying bug.


git-svn-id: http://svn.zope.org/repos/main/zc.buildout/trunk@68865 62d5b8a3-27da-0310-9561-8e5933582275
parent 4fa396af
...@@ -183,7 +183,10 @@ class Buildout(dict): ...@@ -183,7 +183,10 @@ class Buildout(dict):
os.path.basename(dist.location)) os.path.basename(dist.location))
entries.append(dest) entries.append(dest)
if not os.path.exists(dest): if not os.path.exists(dest):
shutil.copy2(dist.location, dest) if os.path.isdir(dist.location):
shutil.copytree(dist.location, dest)
else:
shutil.copy2(dist.location, dest)
# Create buildout script # Create buildout script
ws = pkg_resources.WorkingSet(entries) ws = pkg_resources.WorkingSet(entries)
......
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