Permalink
Browse files

show packages in pip.list that were installed via the editable flag

  • Loading branch information...
1 parent 8539ac1 commit 48286a8d5fc9acd1ec3405d3dc96d8a1d5a39685 @fxdgear fxdgear committed Mar 30, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 salt/modules/pip.py
View
@@ -360,7 +360,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 48286a8

Please sign in to comment.