3 ms·
Does it pin versions of 2nd degree dependencies too? Like pip freeze would do? Also, when you remove a package, does it know to clear packages that were its dep
by mariokostelac 6y ago
Does it pin versions of 2nd degree dependencies too? Like pip freeze would do?
Also, when you remove a package, does it know to clear packages that were its deps and are not needed anymore?
- mariocesar 6y agoYes, and yes
- mjw1007 6y agopip-tools can do both of those, yes. For the second, pip-compile computes the new requirements.txt (which is effectively the lockfile) from scratch, and pip-sync (not shown in that Makefile fragment) removes packages that are no longer listed there.
- mariokostelac 6y agoThanks a lot for the reply. I'll include it some time soon in the article update