Can you set conditional dependencies for Python 2 and 3 in setuptools?

前端 未结 3 2040
醉梦人生
醉梦人生 2021-02-04 01:18

When releasing a Python egg with support for both Python 2 and 3, can you specify dependencies that change depending on which version you\'re using? For example, if you use

3条回答
  •  忘了有多久
    2021-02-04 01:46

    For something mostly related but not exactly to the point see my answer https://stackoverflow.com/a/25078063/302521 and this script: https://gist.github.com/pombredanne/72130ee6f202e89c13bb

提交回复
热议问题