Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 48286a8d5fc9acd1ec3405d3dc96d8a1d5a39685 1 parent 8539ac1
@fxdgear fxdgear authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 salt/modules/pip.py
View
7 salt/modules/pip.py
@@ -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:
Please sign in to comment.
Something went wrong with that request. Please try again.