pypa/pip — pull request #511 by qwcode (2012-04-16 07:17:31+00:00)
Title: "--user" fixes

Pull request to fix various "--user" issues

493: pip shouldn't allow --user installs in virtualenvs (w/o --system-site-packages)
440: pip install --user tries to uninstall system package
494: can't uninstall --user "develop" install
495: user site should be "local" in virtualenvs with --system-site-packages (mostly so we can test)

Tests are passing for py25, py26, py27, and py32 (against rebased branch from 4/15)

I'm happy to trim out or alter parts that may cause concern in the interest of getting as many of these issues resolved.

As mentioned to Carl over email, I'm concerned about the level of testing we can achieve for the "--user" feature, given that the test framework uses virtualenvs, and that full coverage would require *real* python installs.

I'd like to still add some mock/patch tests for the significantly altered util.egg_link_path, and more tests in general.