Mercurial > hg > memeomatic
diff setup.py @ 0:bf637ccfcae5 default tip
initial stub
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 04 Jul 2012 12:53:24 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Wed Jul 04 12:53:24 2012 -0700 @@ -0,0 +1,55 @@ +""" +setup packaging script for memeomatic +""" + +import os +from pkg_resources import require, DistributionNotFound + +version = "0.0" +dependencies = ['webob'] + +# Dependency check at run time +# If PIL is not found, then it is added in the ``install_requires`` list +install_requires = [] # Empty list if PIL is found +try: + try: + require('PIL') + except DistributionNotFound: + require('Image') +except DistributionNotFound: + install_requires = ['PIL'] + +# allow use of setuptools/distribute or distutils +kw = {} +try: + from setuptools import setup + kw['entry_points'] = """ + [console_scripts] + meme-o-matic = memeomatic.main:main +""" + kw['install_requires'] = dependencies +except ImportError: + from distutils.core import setup + kw['requires'] = dependencies + +try: + here = os.path.dirname(os.path.abspath(__file__)) + description = file(os.path.join(here, 'README.txt')).read() +except IOError: + description = '' + + +setup(name='memeomatic', + version=version, + description="RESTful and CLI meme generator", + long_description=description, + classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers + author='Jeff Hammel', + author_email='jhammel@mozilla.com', + url='http://k0s.org/hg/memeomatic', + license='', + packages=['memeomatic'], + include_package_data=True, + zip_safe=False, + **kw + )