From 37934e9266d05e1519ac16d5269fef0b3f3b38e3 Mon Sep 17 00:00:00 2001 From: Xu Di Date: Mon, 22 Apr 2013 13:34:06 +0800 Subject: [PATCH] colout/colout.py uses python3, whereas it really needs python2, also add requirement in setup, makes it auto-install requirement package. --- .gitignore | 3 +++ README.md | 7 +++++++ colout/colout.py | 2 +- setup.py | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0d20b64..9839280 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ *.pyc +build/ +dist/ +colout.egg-info/ diff --git a/README.md b/README.md index 884748c..4b8f741 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,13 @@ to it (see also the `-s` switch below). `colout` is released under the GNU Public License v3. +## INSTALLATION + + sudo python setup.py install + +and then soft link `/usr/local/bin/colout` to your colout.py under your installaion directory, which usually like + + /usr/local/lib/python2.7/dist-packages/colout-0.1-py2.7.egg/colout/colout.py ## OPTIONS diff --git a/colout/colout.py b/colout/colout.py index 0f7cfc3..2bdcd71 100755 --- a/colout/colout.py +++ b/colout/colout.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python #encoding: utf-8 # Color Up Arbitrary Command Ouput diff --git a/setup.py b/setup.py index bb9fb52..3145294 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ if sys.argv[-1] == 'publish': packages = ['colout'] -requires = [] +requires = ['argparse', 'pygments', 'babel'] setup( name='colout',