Skip to content

Commit

Permalink
follow egg links when listing pip dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sdvillal committed Jan 9, 2017
1 parent 27742d4 commit 4bf3bf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions conda/egg_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def get_site_packages_dir(installed_pkgs):

def get_egg_info_files(sp_dir):
for fn in os.listdir(sp_dir):
if fn.endswith('.egg-link'):
with open(join(sp_dir, fn), 'r') as reader:
for egg in get_egg_info_files(reader.readline().strip()):
yield egg
if not fn.endswith(('.egg', '.egg-info', '.dist-info')):
continue
path = join(sp_dir, fn)
Expand Down

0 comments on commit 4bf3bf7

Please sign in to comment.