Skip to content

Is there a way to generate hashes from an existing installation? #2377

@cleboo

Description

@cleboo

Hi!

This is more of a question than an issue regarding pip-compile --generate-hashes: if I understand pip-compile correctly, it takes the content of - let's say - a requirements.in file, resolves the packages from indexes (PyPI or others) and writes the hashes it found to requirements.txt.

Is there a way to use already installed packages as a source for the hashes instead of resolving everything from the index?

This would be useful when on-boarding legacy projects that only have a requirements.txt file so far and you want to avoid installing new packages while generating the hash-pinned requirements.txt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions