我该如何在Python的
以下是我为我的开源库指定可选依赖项的尝试,但好像没有什么作用。
特别是这个片段中的
setup.py
中指定可选依赖项?以下是我为我的开源库指定可选依赖项的尝试,但好像没有什么作用。
特别是这个片段中的
extra_requires
:
https://github.com/od-eon/django-cherrypy/blob/master/setup.pysetup(
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',
)
有建议吗?