Skip to content

Commit

Permalink
Merge pull request #1852 from dongweiming/modify_setup
Browse files Browse the repository at this point in the history
modify setup.py
  • Loading branch information
ask committed Feb 10, 2014
2 parents 1e0a799 + fa95f7b commit 59c4fd6
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,7 @@ def add_doc(m):
re_vers: add_version,
re_doc: add_doc}
here = os.path.abspath(os.path.dirname(__file__))
meta_fh = open(os.path.join(here, 'celery/__init__.py'))
try:
with open(os.path.join(here, 'celery/__init__.py')) as meta_fh:
meta = {}
for line in meta_fh:
if line.strip() == '# -eof meta-':
Expand All @@ -121,8 +120,6 @@ def add_doc(m):
m = pattern.match(line.strip())
if m:
meta.update(handler(m))
finally:
meta_fh.close()

# -*- Installation Requires -*-

Expand Down Expand Up @@ -170,30 +167,13 @@ def reqs(*f):

if is_setuptools:
extras = lambda *p: reqs('extras', *p)
extra['extras_require'] = {
# Celery specific
'auth': extras('auth.txt'),
'cassandra': extras('cassandra.txt'),
'memcache': extras('memcache.txt'),
'couchbase': extras('couchbase.txt'),
'threads': extras('threads.txt'),
'eventlet': extras('eventlet.txt'),
'gevent': extras('gevent.txt'),

'msgpack': extras('msgpack.txt'),
'yaml': extras('yaml.txt'),
'redis': extras('redis.txt'),
'mongodb': extras('mongodb.txt'),
'sqs': extras('sqs.txt'),
'couchdb': extras('couchdb.txt'),
'beanstalk': extras('beanstalk.txt'),
'zookeeper': extras('zookeeper.txt'),
'zeromq': extras('zeromq.txt'),
'sqlalchemy': extras('sqlalchemy.txt'),
'librabbitmq': extras('librabbitmq.txt'),
'pyro': extras('pyro.txt'),
'slmq': extras('slmq.txt'),
}
# Celery specific
specific_list = ['auth', 'cassandra', 'memcache', 'couchbase', 'threads',
'eventlet', 'gevent', 'msgpack', 'yaml', 'redis',
'mongodb', 'sqs', 'couchdb', 'beanstalk', 'zookeeper',
'zeromq', 'sqlalchemy', 'librabbitmq', 'pyro', 'slmq']
extras_require = dict((x, extras(x + '.txt')) for x in specific_list)
extra['extras_require'] = extras_require

# -*- %%% -*-

Expand Down

0 comments on commit 59c4fd6

Please sign in to comment.