Skip to content

Commit

Permalink
Tools: install-prereqs-ubuntu.sh: fix script after setuptools==71.0.0…
Browse files Browse the repository at this point in the history
… release

Use newest `packaging` to avoid packaging incompatibility with `setuptools>=71.0`

As pypa/setuptools#4496 (comment) mentions:
> setuptools>=71.0 does not work with packaging<24.0, but will not upgrade it if packaging is already installed

Also relevant: pypa/setuptools#4496
  • Loading branch information
ben-xD committed Jul 22, 2024
1 parent 56773f0 commit 56776d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/environment_install/install-prereqs-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,8 @@ if [ -n "$PYTHON_VENV_PACKAGE" ]; then
fi
fi

# try update setuptools and wheel before installing pip package that may need compilation
$PIP install $PIP_USER_ARGUMENT -U pip setuptools wheel
# try update packaging, setuptools and wheel before installing pip package that may need compilation
$PIP install $PIP_USER_ARGUMENT -U pip packaging setuptools wheel

if [ "$GITHUB_ACTIONS" == "true" ]; then
PIP_USER_ARGUMENT+=" --progress-bar off"
Expand Down

0 comments on commit 56776d8

Please sign in to comment.