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.
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.