How can I display vcs revision of Python package installed with pip from vcs?

99封情书 提交于 2019-12-11 08:43:07

问题


After installing some package with pip from vcs like this
pip install git+https://github.com/kennethreitz/requests.git@355b97165c#requests
how can I display the vcs revision/commit/branch/tag (355b97165c in this example) used to install it?


回答1:


There's currently no way to do this because url used during installation is not being recorded anywhere. However there's work in progress to add such functionality. See Continuing Feature/record download info pull request.

I'd like to thank dstufft from #pip IRC channel for answering my question and pointing me to this pull request (which builds upon his pull request).



来源:https://stackoverflow.com/questions/10856778/how-can-i-display-vcs-revision-of-python-package-installed-with-pip-from-vcs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!