Permalink
Browse files

Merge pull request #1026 from fxdgear/develop

show packages in pip.list that were installed via the editable flag
  • Loading branch information...
2 parents d00133e + cb49434 commit 9cd35f39007984f4fcbd4097843afc52b7916d9a @whiteinge whiteinge committed Mar 30, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 salt/modules/pip.py
View
@@ -363,7 +363,12 @@ def list(prefix='', bin_env=None):
packages = {}
cmd = '{0} freeze'.format(_get_pip_bin(bin_env))
for line in __salt__['cmd.run'](cmd).split("\n"):
- if len(line.split("==")) >= 2:
+ if line.startswith('-e'):
+ line = line.split('-e ')[1]
+ line, name = line.split('#egg=')
+ packages[name]=line
+
+ elif len(line.split("==")) >= 2:
name = line.split("==")[0]
version = line.split("==")[1]
if prefix:

0 comments on commit 9cd35f3

Please sign in to comment.