问题
After installing some package with pip from vcs like thispip 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