How can I specify library versions in setup.py?

前端 未结 1 1177
青春惊慌失措
青春惊慌失措 2021-02-02 05:12

In my setup.py file, I\'ve specified a few libraries needed to run my project:

setup(
    # ...
    install_requires = [
        \'django-pipeline\'         


        
1条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 05:37

    I'm not sure about buildout, however, for setuptools/distribute, you specify version info with the comparison operators (like ==, >=, or <=).

    For example:

    install_requires = ['django-pipeline==1.1.22', 'south>=0.7']
    

    0 讨论(0)
提交回复
热议问题