python-pip:
cmd:
- run
- cwd: /
- name: easy_install --script-dir=/usr/bin -U pip
- reload_modules: true
python-packages:
pip.installed:
- requires:
- cmd: python-pip
- pkgs:
- mypythonpackage
Unfortunately, these instructions result in a broken installation of pip on Ubuntu 13.10:
$ pip2
Traceback (most recent call last):
File "/usr/bin/pip2", line 9, in <module>
load_entry_point('pip==1.4.1', 'console_scripts', 'pip2')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 343, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2308, in load_entry_point
raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'pip2') not found
Note that `pip`, works, though `pip2` doesn't.
It may be that this has occurred because I have python-pip installed from the apt repositories already.