anki/pip
2021-10-16 18:07:39 +10:00
..
pyqt5 remove unneeded namespace code from install_pyqt5/6.py 2021-10-16 18:07:29 +10:00
pyqt6 fix qtwebengineprocess failing to load on darwin-aarch64 2021-10-16 18:07:39 +10:00
stubs download wheels using rules_python 2021-10-15 16:02:26 +10:00
binary.bzl download wheels using rules_python 2021-10-15 16:02:26 +10:00
BUILD.bazel
licenses.json
licenses.sh
README.md
requirements.in roll back regex due to unsigned wheel 2021-10-16 18:07:39 +10:00
requirements.txt roll back regex due to unsigned wheel 2021-10-16 18:07:39 +10:00
update.py strip extras from requirements.txt 2021-10-04 15:05:48 +10:00

To achieve reproducible builds we use pip-tools to lock packages to a particular version. Sadly this is complicated by the fact that Python can only tell us which transitive dependencies are required by actually installing packages, and if you run pip-tools on a Mac or Linux machine, it will miss packages that are required on Windows and vice versa.

So we're stuck manually merging dependencies for now. To update deps:

  • run 'bazel run update' to update requirements.txt for the current platform
  • consult the git diff, and manually merge the changes, undoing the removal of items pinned on other platforms
  • repeat the process on the other platform
  • run the tests to ensure nothing has broken on either platform
  • commit the changes to requirements.txt

At the time of writing, Macs and Linux machines have identical output - it is only Windows that differs. But we should not assume that will always be the case.