saltstack/salt — Issue #754: pip.install fails if you don't have virtualenv
Author: araddon
Created: 2012-02-25 00:32:22+00:00
State: open

failure message:

0:10:25,020 [cmd ][INFO ] Executing command pip install -E -r cql in directory /root
00:10:25,155 [cmd ][DEBUG ] Usage: /usr/local/bin/pip install [OPTIONS] PACKAGE_NAMES...

/usr/local/bin/pip install: error: no such option: -E

this change should do the trick

env="-E %s" % env if env else ''"
cmd = '{pip_bin} install {env} {reqs} {pkgs}'.format(
pip_bin=_get_pip_bin(pip_bin, env),
env='{0}'.format(env),
reqs='-r {0}'.format(requirements if requirements else ''),
pkgs=pkgs)