osupython/pip2 — pull request #48 by rlbaker (2012-05-03 22:07:18+00:00)
Title: Install local packages

pip2.commands.install.install() will now detect if a package is a local archive or directory and attempt to install from there rather than pulling from Pypi (or other index).

It does this by checking the passed in package name exists on the filesystem (using os.path.exists) and if so, calls install_local_project rather than install.

Test case tests to make sure that the appropriate function (install or install_local_project) is called.