# HG changeset patch # User catherine.devlin@gmail.com # Date 1311211433 14400 # Node ID 6ffa49335dcbaf4dcc082440b0935fed4c238785 # Parent fc63f0aad0226543f4610a0ae18c72721e5f66b7 Python 3 installation instructions diff -r fc63f0aad022 -r 6ffa49335dcb INSTALL.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/INSTALL.txt Wed Jul 20 21:23:53 2011 -0400 @@ -0,0 +1,20 @@ +cmd2 can be installed from PyPI by ``easy_install`` or ``pip``. + +Development trunk can be downloaded with mercurial:: + + hg clone http://hg.assembla.com/python-cmd2 + +To install from the trunk, ``cd python-cmd2`` and run ``python setup.py install`` or ``python setup.py develop`` (requires setuptools). + +Python 3 +-------- + +The Python 3 egg downloaded from PyPI or installed by ``pip`` or ``easy_install`` is ready to go. + +To install from source for Python 3:: + + 2to3 -w cmd2.py + python3 setup.py install + + + \ No newline at end of file diff -r fc63f0aad022 -r 6ffa49335dcb cmd2.py --- a/cmd2.py Wed Jun 22 21:56:20 2011 -0400 +++ b/cmd2.py Wed Jul 20 21:23:53 2011 -0400 @@ -221,6 +221,8 @@ can_clip = True except Exception: # hate a bare Exception call, but exception classes vary too much b/t stdlib versions pass + except Exception: + pass # something went wrong with xclip and we cannot use it if can_clip: def get_paste_buffer(): xclipproc = subprocess.Popen('xclip -o -sel clip', shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE)