This catches the BadCommand that get raised by vcs modules when the VCS
software is not installed or not in the PATH. In this case, we behave as
if the .git, .svn or .hg folder hadn't been found at all (but with the
correct warning).
Using sys.exc_info()[1] is a hack that was used to use a shared
source approach to Python 3.x support that also included versions
of Python that didn't include the except ... as exc: construction.
Pip no longer supports any of these versions of Python so we can
remove it.
Tested locally:
=====================================================
================== Running pep8 =====================
Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.7.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to
/Users/pnasrat/Development/pip/pip_virtualenv/bin
Using
/Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.7/site-packages/pep8-0.6.1-py2.7.egg
Processing dependencies for pep8
Finished processing dependencies for pep8
==================== Ended pep8 =====================
=====================================================
Reran tests after changes on 2.4, 2.6, 3.2 all pass.
=====================================================
================== Running pep8 =====================
Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.6.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to /Users/pnasrat/Development/pip/pip_virtualenv/bin
Using /Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.6/site-packages/pep8-0.6.1-py2.6.egg
Processing dependencies for pep8
Finished processing dependencies for pep8
==================== Ended pep8 =====================
=====================================================
Fixes issue #36 by supporting launchpad urls.
Functionally tested
python pip/runner.py install -e bzr+lp:ijson#egg=ijson
Obtaining ijson from bzr+lp:ijson#egg=ijson
Checking out lp:ijson to ./src/ijson
You have not informed bzr of your Launchpad ID, and you must do this to
write to Launchpad or access private data. See "bzr help launchpad-login".
Running setup.py egg_info for package ijson
Installing collected packages: ijson
Running setup.py develop for ijson
install_dir /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
Creating /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ijson.egg-link (link to .)
Adding ijson 0.8.0 to easy-install.pth file
error: /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/easy-install.pth: Permission denied
Complete output from command /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python -c "import setuptools; __file__='/Users/pnasrat/Development/pip/src/ijson/setup.py'; exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps:
running develop
install_dir /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
running egg_info
writing ijson.egg-info/PKG-INFO
writing top-level names to ijson.egg-info/top_level.txt
writing dependency_links to ijson.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'ijson.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'ijson.egg-info/SOURCES.txt'
running build_ext
Creating /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/ijson.egg-link (link to .)
Adding ijson 0.8.0 to easy-install.pth file