Browse Source

contrib: freeze_packages should pin latest pip/etc if possible

We've already been pinning pip/setuptools/wheel; it is `pip freeze --all`
(the "--all" arg) that does that. This change just tries to ensure that
we pin the latest version when possible.
Previously if e.g. "pip" was not pulled in by any package in "requirements${i}.txt",
we would just pin whatever is installed locally.
patch-4
SomberNight 4 years ago
parent
commit
b8395f71be
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 6
      contrib/freeze_packages.sh

6
contrib/freeze_packages.sh

@ -28,6 +28,12 @@ for i in '' '-hw' '-binaries' '-binaries-mac' '-build-wine' '-build-mac' '-build
echo "Installing dependencies... (requirements${i}.txt)"
# We pin all python packaging tools (pip and friends). Some of our dependencies might
# pull some of them in (e.g. protobuf->setuptools), and all transitive dependencies
# must be pinned, so we might as well pin all packaging tools. This however means
# that we should explicitly install them now, so that we pin latest versions if possible.
python -m pip install --upgrade pip setuptools wheel
python -m pip install -r "$contrib/requirements/requirements${i}.txt" --upgrade
echo "OK."

Loading…
Cancel
Save