Mercurial > hg > memeomatic
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:bf637ccfcae5 |
---|---|
1 """ | |
2 setup packaging script for memeomatic | |
3 """ | |
4 | |
5 import os | |
6 from pkg_resources import require, DistributionNotFound | |
7 | |
8 version = "0.0" | |
9 dependencies = ['webob'] | |
10 | |
11 # Dependency check at run time | |
12 # If PIL is not found, then it is added in the ``install_requires`` list | |
13 install_requires = [] # Empty list if PIL is found | |
14 try: | |
15 try: | |
16 require('PIL') | |
17 except DistributionNotFound: | |
18 require('Image') | |
19 except DistributionNotFound: | |
20 install_requires = ['PIL'] | |
21 | |
22 # allow use of setuptools/distribute or distutils | |
23 kw = {} | |
24 try: | |
25 from setuptools import setup | |
26 kw['entry_points'] = """ | |
27 [console_scripts] | |
28 meme-o-matic = memeomatic.main:main | |
29 """ | |
30 kw['install_requires'] = dependencies | |
31 except ImportError: | |
32 from distutils.core import setup | |
33 kw['requires'] = dependencies | |
34 | |
35 try: | |
36 here = os.path.dirname(os.path.abspath(__file__)) | |
37 description = file(os.path.join(here, 'README.txt')).read() | |
38 except IOError: | |
39 description = '' | |
40 | |
41 | |
42 setup(name='memeomatic', | |
43 version=version, | |
44 description="RESTful and CLI meme generator", | |
45 long_description=description, | |
46 classifiers=[], # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers | |
47 author='Jeff Hammel', | |
48 author_email='jhammel@mozilla.com', | |
49 url='http://k0s.org/hg/memeomatic', | |
50 license='', | |
51 packages=['memeomatic'], | |
52 include_package_data=True, | |
53 zip_safe=False, | |
54 **kw | |
55 ) |