Specifying optional dependencies in pypi python setup.py

后端 未结 1 1270
灰色年华
灰色年华 2020-12-30 19:34

How do I specify optional dependencies in python\'s setup.py ?

Here\'s my stab at specifying an optional dependency for an open source library of mine b

相关标签:
1条回答
  • 2020-12-30 20:09

    You've got an incorrect keyword. It's extras_require, and it's supposed to be a dict.

    setup(
        name="django-cherrypy",
        ...
        extras_require = {
            'mysterious_feature_x':  ["newrelic"]
        }
    )
    
    0 讨论(0)
提交回复
热议问题