view makeitso/python_package/setup.py @ 134:0e18cdf36a0e

make the python package distutils compatible
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 19 Feb 2012 22:27:42 -0800
parents 908e9a653668
children f32ea241e94c
line wrap: on
line source

"""
setup packaging script for {{project}}
"""

import os

version = "0.0"
dependencies = {{dependencies}}

# allow use of setuptools/distribue or distutils
kw = {}
try:
    from setuptools import setup
    kw['entry_points'] = """
{{console_scripts}}
"""
    kw['install_requires'] = dependencies
except ImportError:
    from distutils.core import setup


try:
    here = os.path.dirname(os.path.abspath(__file__))
    description = file(os.path.join(here, 'README.txt')).read()
except IOError:
    description = ''


setup(name='{{project}}',
      version=version,
      description="{{description}}",
      long_description=description,
      classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
      author='{{author}}',
      author_email='{{email}}',
      url='{{url}}',
      license='',
      packages=['{{project}}'],
      include_package_data=True,
      zip_safe=False,
      install_requires=dependencies,
      **kw
      )