422
|
1 cmd2 can be installed from PyPI by ``easy_install`` or ``pip``.
|
|
2
|
|
3 Development trunk can be downloaded with mercurial::
|
|
4
|
|
5 hg clone http://hg.assembla.com/python-cmd2
|
|
6
|
423
|
7 To install from the trunk, ``cd python-cmd2`` and run ``python setup.py install`` or ``python setup.py develop`` (requires setuptools). (Use ``root`` account, or ``sudo``, on *nix.)
|
422
|
8
|
|
9 Python 3
|
|
10 --------
|
|
11
|
|
12 The Python 3 egg downloaded from PyPI or installed by ``pip`` or ``easy_install`` is ready to go.
|
|
13
|
423
|
14 To install from source for Python 3, the 2to3 transformations must be applied to ``cmd2.py``.
|
|
15 The best way to do this is to install ``distribute`` on Python 3 before installing
|
|
16 ``cmd1``::
|
422
|
17
|
423
|
18 curl -O http://python-distribute.org/distribute_setup.py
|
|
19 sudo python3 distribute_setup.py
|
|
20
|
|
21 sudo python3 setup.py install
|
429
|
22
|
|
23 2to3 won't run if there's a ``build`` directory that's newer than your source code. Deleting the ``cmd2/build`` directory before running setup.py ensures that this won't be a problem.
|