If I install a package from git using https://pip.pypa.io/en/stable/reference/pip_install/#git does the specific commit that was checked out logged somewhere?
I can easily find the commit hash for a package of mine.
I've used Cookie Cutter tool to generate my python package structure. When I install my package from a GitLab repository, a directory named
is generated inside my Python Lib
directory.
There's a file direct_url.json
that records the commit_id of the repository:
I don't really know if this a general solution when a install from a git repo is made, or an artifact generated by the Cookie Cutter setup.