-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Add pip freeze option to report local directory instead of VCS link #7896
Copy link
Copy link
Open
Labels
C: direct urlDirect URL references (PEP 440, PEP 508, PEP 610)Direct URL references (PEP 440, PEP 508, PEP 610)C: editableEditable installationsEditable installationsC: freeze'pip freeze' related'pip freeze' relatedC: vcspip's interaction with version control systems like git, svn and bzrpip's interaction with version control systems like git, svn and bzrresolution: deferred till PRFurther discussion will happen when a PR is madeFurther discussion will happen when a PR is madetype: feature requestRequest for a new featureRequest for a new feature
Metadata
Metadata
Assignees
Labels
C: direct urlDirect URL references (PEP 440, PEP 508, PEP 610)Direct URL references (PEP 440, PEP 508, PEP 610)C: editableEditable installationsEditable installationsC: freeze'pip freeze' related'pip freeze' relatedC: vcspip's interaction with version control systems like git, svn and bzrpip's interaction with version control systems like git, svn and bzrresolution: deferred till PRFurther discussion will happen when a PR is madeFurther discussion will happen when a PR is madetype: feature requestRequest for a new featureRequest for a new feature
Fields
Give feedbackNo fields configured for issues without a type.
This is a follow up on #4300 which has been automatically locked.
I was tricked by this as well and I am not sure about the reasoning about why pip freeze wants to be super smart and changes the location of a pip install -e to a version control path. Is there some way to turn this behaviour off via command line?
If I would want to specify a version controlled package in the pip freeze output, then I could simply use
pip install -e git+ssh://<package>to install the package. If instead I use
pip install -e ./some/relative/local/pathI find it very strange that this path is suddenly replaced by a completely different path to a version control system.
Automatically converting local paths to version control paths is a bad idea in my opinion and it actually breaks the usability of pip freeze for us. Converting the path back to a local path afterwards is pretty much impossible, but it is necessary in our infrastructure.