Provide --generate-hashes
option to include hashes in requirements.txt output
#4189
Labels
--generate-hashes
option to include hashes in requirements.txt output
#4189
As described in #3057 (comment), emitting
requirements.txt
and then runningpip-sync
is much faster than runningpipenv sync
directly.This speed increase comes from the fact that
pip-sync
is correctly checking for already installed packages, whilepipenv sync
doesn't yet do that.However, the workaround has a problem, which is that if the
pip-sync
operation does need to install anything, then that installation won't check the artifact hashes, as those hashes aren't included in therequirements.txt
output.Supporting a
pip-compile
style--generate-hashes
option topipenv lock --requirements
would allow the export topip-sync
(and other tools) to keep the expected hash information.The text was updated successfully, but these errors were encountered: