anki/python/update_python_deps.sh
Damien Elmes 823ca4c8a9 Split the Qt requirements into per-platform deps
Since more often than not, we can't use the same Qt version on all
platforms due to regressions.
2023-06-22 09:46:09 +10:00

26 lines
729 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$1" == "all" ]; then
upgrade="--upgrade"
elif [ "$1" != "" ]; then
upgrade="--upgrade-package $1"
else
upgrade=""
fi
args="--resolver=backtracking --allow-unsafe --no-header --strip-extras --generate-hashes"
# initial pyenv bootstrap
../out/pyenv/bin/pip-compile $args $upgrade requirements.base.in
# during bundle
../out/pyenv/bin/pip-compile $args $upgrade requirements.bundle.in
../out/pyenv/bin/pip-compile $args $upgrade requirements.qt6_win.in
../out/pyenv/bin/pip-compile $args $upgrade requirements.qt6_lin.in
../out/pyenv/bin/pip-compile $args $upgrade requirements.qt6_mac.in
# during build/development/testing
../out/pyenv/bin/pip-compile $args $upgrade requirements.dev.in