pip-tools icon indicating copy to clipboard operation
pip-tools copied to clipboard

Differing results based on platform pip-compile is run from

Open ssbarnea opened this issue 3 years ago • 2 comments

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.

ssbarnea avatar Nov 12 '20 08:11 ssbarnea

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

stianlagstad avatar Sep 13 '23 10:09 stianlagstad

FWIW this is explained in README already.

webknjaz avatar Sep 13 '23 12:09 webknjaz