24 lines
1 KiB
Diff
24 lines
1 KiB
Diff
|
--- a/src/zc/buildout/easy_install.py 2013-08-27 22:28:40.233718116 +0200
|
||
|
+++ b/src/zc/buildout/easy_install.py 2013-08-27 22:31:07.967871186 +0200
|
||
|
@@ -508,16 +508,15 @@
|
||
|
self._dest, os.path.basename(dist.location))
|
||
|
|
||
|
if os.path.isdir(dist.location):
|
||
|
- # we got a directory. It must have been
|
||
|
- # obtained locally. Just copy it.
|
||
|
- shutil.copytree(dist.location, newloc)
|
||
|
+ # Symlink to dists in /nix/store
|
||
|
+ if not os.path.exists(newloc):
|
||
|
+ os.symlink(dist.location, newloc)
|
||
|
else:
|
||
|
|
||
|
|
||
|
setuptools.archive_util.unpack_archive(
|
||
|
dist.location, newloc)
|
||
|
-
|
||
|
- redo_pyc(newloc)
|
||
|
+ redo_pyc(newloc)
|
||
|
|
||
|
# Getting the dist from the environment causes the
|
||
|
# distribution meta data to be read. Cloning isn't
|