colout/setup.py
Martin Ueding 177c11fd9a Add launcher script
I tried to package this program in Ubuntu, and found that it has no
startup script. So I added a `colout` script that gets installed into
the scripts directory with the `setup.py`.
2013-04-28 15:53:00 +02:00

37 lines
779 B
Python

#!/usr/bin/env python
import os
import sys
import colout
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
if sys.argv[-1] == 'publish':
os.system('python setup.py sdist upload')
sys.exit()
packages = ['colout']
requires = []
setup(
name='colout',
version='0.1',
description='Color Up Arbitrary Command Ouput.',
long_description=open('README.md').read(),
author='nojhan',
author_email='nojhan@nojhan.net',
url='http://nojhan.github.com/colout/',
packages=packages,
package_data={'': ['LICENSE']},
package_dir={'colout': 'colout'},
scripts=['bin/colout'],
include_package_data=True,
install_requires=requires,
license=open('LICENSE').read(),
zip_safe=False,
)