如何指定python的可选依赖setup.py
?
这是我在指定为我的一个开源库的可选依赖刺,但它似乎并没有做太多。
https://github.com/od-eon/django-cherrypy/blob/master/setup.py
具体地说extra_requires
在此片断:
setup(
name='django-cherrypy',
version='0.1',
packages=packages,
license='LICENSE',
description='cherrypy, running under django',
long_description=open('README.md').read(),
author='Calvin Cheng',
author_email='calvin@calvinx.com',
install_requires=['cherrypy-wsgiserver'],
extra_requires=['newrelic'],
url='https://github.com/od-eon/django-cherrypy',
)
建议?