Can a Python package depend on a specific version control revision of another Python package?

前端 未结 4 2035
孤街浪徒
孤街浪徒 2020-12-13 16:29

Some useful Python packages are broken on pypi, and the only acceptable version is a particular revision in a revision control system. Can that be expressed in setup.p

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 16:39

    You can release packages of specific versions, but you have to distribute them together. There is no way to automatically download them with standard Python.

    However, you can use Buildout and create a buildout.cfg that makes it possible to replicate the environment. It can check out and install specific revisions if you use extensions like mr.developer.

    http://pypi.python.org/pypi/zc.buildout http://pypi.python.org/pypi/mr.developer

提交回复
热议问题