saltstack/salt — pull request #1150 by imankulov (2012-04-29 09:14:09+00:00)
Title: Add cwd and runas options to virtualenv and pip modules

Sometimes "cd dirname && pip install ./requirements.pip" is more preferable than "pip install ./dirname/requirements.pip" . It is especially important for those who want to add "-e ../my-other-package" in their requirements.pip.

Basically, it reflects my convention I use to deploy a complex project with a number of internal dependencies. I do a number of "git clone"s in the same directory (/opt/git-repos , for example), and then do "pip install -r requirements.pip" in the primary repository which installs everything else as dependency.

Additionally, there is a minor fix which performs "pip install" under the account defined in virtualenv.managed runas and there is a change in handling cached requirements files. The reasoning behind latter change is described in the commit message.

It seems that there is quite a lot of changes for one pull request, but I hope they will be accepted, as there should be no changes breaking any previously written rules. Thanks