Skip to content

Commit

Permalink
Replaced "pip freeze" with pkg_resources
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Dunai <andunai@gmail.com>
  • Loading branch information
and3rson committed Jul 6, 2017
2 parents 5c3cff2 + e6dd9a6 commit 497b189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compose/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
[
sys.executable, '-c',
"""import pkg_resources as pr; print "\\n".join([d.project_name for d in pr.working_set])"""
], stderr=subprocess.PIPE, stdout=subprocess.PIPE
],
stderr=subprocess.PIPE, stdout=subprocess.PIPE
)
packages = s_cmd.communicate()[0].splitlines()
if 'docker-py' in packages:
Expand Down

0 comments on commit 497b189

Please sign in to comment.