osupython / pip2

Experimental port of pip from distutils to distutils2.
http://pip2.readthedocs.org/
MIT License
18 stars 11 forks source link

Install now checks if package is local #49

Closed rlbaker closed 12 years ago

rlbaker commented 12 years ago

pip2.commands.install now checks if a package is local and attempts to install if from the local machine if so. The check is performed using os.path.exists. If a package is detected to be local, it will be installed with packaging.install.install_local_project and if it is not detected to be local it will be instally from Pypi (or other index) using packaging.install.install.

rlbaker commented 12 years ago

test_local_project now mocks the os.path.exists to avoid touching the filesystem as recommended.