Skip to content

Add pip freeze option to report local directory instead of VCS link #7896

@cwiede

Description

@cwiede

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/path

I 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: direct urlDirect URL references (PEP 440, PEP 508, PEP 610)C: editableEditable installationsC: freeze'pip freeze' relatedC: vcspip's interaction with version control systems like git, svn and bzrresolution: deferred till PRFurther discussion will happen when a PR is madetype: feature requestRequest for a new feature
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions