Commit c2fa60fd authored by Leonardo Rochael Almeida's avatar Leonardo Rochael Almeida Committed by Jim Fulton

Drop use of pkg_resources._by_version_descending() (#376)

It's not present in older setuptools versions.

It seems not to be needed since `pkg_resources.Environment.add()` will
sort dists in each project_name according to their version anyway.
parent 3ed677fc
...@@ -289,8 +289,7 @@ class Installer: ...@@ -289,8 +289,7 @@ class Installer:
eggs = glob.glob(os.path.join(dest, '*.egg')) eggs = glob.glob(os.path.join(dest, '*.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(dest, '*', '*.dist-info'))]
# sort them like pkg_resources.find_on_path() would return list(set(eggs + dists))
return pkg_resources._by_version_descending(set(eggs + dists))
@staticmethod @staticmethod
def _eggify_env_dest_dists(env, dest): def _eggify_env_dest_dists(env, dest):
......
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