annotate INSTALL.txt @ 438:a5f3d5a89d6c tip

pyparsing 2.0.0 only if on Python3
author Catherine Devlin <catherine.devlin@gmail.com>
date Tue, 19 Feb 2013 04:33:12 -0500
parents 47301bf13ec3
children
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
429
47301bf13ec3 no packrat for python3, darn
catherine.devlin@gmail.com
parents: 423
diff changeset
22
47301bf13ec3 no packrat for python3, darn
catherine.devlin@gmail.com
parents: 423
diff changeset
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.