Commit f3f3bd91 authored by Jim Fulton's avatar Jim Fulton

Fixed egg-copying bug.

parent 5ddf1f1f
...@@ -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