annotate INSTALL.txt @ 423:fe75803a4a5e

describe Distribute requirement
author catherine.devlin@gmail.com
date Wed, 20 Jul 2011 23:21:29 -0400
parents 6ffa49335dcb
children 47301bf13ec3
rev   line source
422
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
1 cmd2 can be installed from PyPI by ``easy_install`` or ``pip``.
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
2
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
3 Development trunk can be downloaded with mercurial::
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
4
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
5 hg clone http://hg.assembla.com/python-cmd2
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
6
423
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
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
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
8
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
9 Python 3
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
10 --------
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
11
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
12 The Python 3 egg downloaded from PyPI or installed by ``pip`` or ``easy_install`` is ready to go.
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
13
423
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
14 To install from source for Python 3, the 2to3 transformations must be applied to ``cmd2.py``.
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
15 The best way to do this is to install ``distribute`` on Python 3 before installing
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
16 ``cmd1``::
422
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
17
423
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
18 curl -O http://python-distribute.org/distribute_setup.py
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
19 sudo python3 distribute_setup.py
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
20
fe75803a4a5e describe Distribute requirement
catherine.devlin@gmail.com
parents: 422
diff changeset
21 sudo python3 setup.py install
422
6ffa49335dcb Python 3 installation instructions
catherine.devlin@gmail.com
parents:
diff changeset
22