My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
InstallNotes  
How to install cmdln.py
Featured
Updated Jun 30, 2009 by tre...@gmail.com

Cmdln is one Python module -- cmdln.py -- which has no external dependencies that aren't part of the Python standard library so, if you like, you may simple copy cmdln.py into your own Python packages. The module should work with Python 2.4, 2.5, 2.6, 2.7. I haven't yet put together a version for Python 3.

Do I have it installed?

If you have cmdln.py installed you should be able to do this:

$ python -c "import cmdln; print('yes')"
yes

What version do I have installed?

$ python -c "import cmdln; print(cmdln.__version__)"
...your installed version...

How do I install or upgrade?

Install with one of the following methods.

  • Install with pip (if you have it):
pip install cmdln
More on pip here.
  • Install with easy_install (if you have it):
easy_install cmdln
See good instructions here for installing easy_install (part of setuptools) here.
  • Basic (aka old school) installation:
    1. download the latest cmdln-$version.zip
    2. unzip it
    3. run python setup.py install in the extracted directory

For example, for version 1.1.2:

wget -q http://cmdln.googlecode.com/files/cmdln-1.1.2.zip
unzip cmdln-1.1.2.zip
cd cmdln-1.1.2
python setup.py install

Sign in to add a comment
Powered by Google Project Hosting