pip-tools
pip-tools copied to clipboard
Differing results based on platform pip-compile is run from
While I do understand that different platforms may produce different results it i also impossible to run pip-compile for a specific target platform.
Even if you product officially ships on a single platform, the developers may use a plethora of variations when they propose a change, they should be able to recompile the target requirements.txt file.
For example if their dev machine is MacOS, or even a different python version that the shipped one you do end-up with a different requirements.txt file (even if sometimes only comments differ).
This does not play well at all with CI usage, where you likely have one job that recompiles requirements.in and fails the build if the produced file is different.
We clearly need a reproducible way to recompile requirements that does not force PR creator to execute pip-compile on a very particular platform.
Here's an issue describing the same problem with another package manager:
- https://github.com/pypa/pipenv/issues/5130
- https://github.com/pypa/pipenv/issues/5561
FWIW this is explained in README already.