Commit 8b27e19d authored by Xavier Thompson's avatar Xavier Thompson

[tmp] Add develop eggs to env manually

parent d63481d2
...@@ -312,7 +312,7 @@ class Installer(object): ...@@ -312,7 +312,7 @@ class Installer(object):
self._versions = normalize_versions(versions) self._versions = normalize_versions(versions)
def _make_env(self): def _make_env(self):
full_path = self._get_dest_dist_paths() + self._path full_path = self._get_dest_dist_paths() + self._get_path_dist_paths() + self._path
env = pkg_resources.Environment(full_path) env = pkg_resources.Environment(full_path)
# this needs to be called whenever self._env is modified (or we could # this needs to be called whenever self._env is modified (or we could
# make an Environment subclass): # make an Environment subclass):
...@@ -327,9 +327,18 @@ class Installer(object): ...@@ -327,9 +327,18 @@ class Installer(object):
dest = self._dest dest = self._dest
if dest is None: if dest is None:
return [] return []
eggs = glob.glob(os.path.join(dest, '*.egg')) return self._get_dist_paths(dest)
def _get_path_dist_paths(self):
dist_paths = []
for path in self._path:
dist_paths.extend(self._get_dist_paths(path))
return dist_paths
def _get_dist_paths(self, path):
eggs = glob.glob(os.path.join(path, '*.egg'))
dists = [os.path.dirname(dist_info) for dist_info in dists = [os.path.dirname(dist_info) for dist_info in
glob.glob(os.path.join(dest, '*', '*.dist-info'))] glob.glob(os.path.join(path, '*', '*.dist-info'))]
return list(set(eggs + dists)) return list(set(eggs + dists))
@staticmethod @staticmethod
......
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