Skip to content

Commit

Permalink
Tools: install_prereqs_ubuntu.sh: pin setuptools to avoid problems on…
Browse files Browse the repository at this point in the history
… Focal

    focal:     return Version(version)
    focal:   File "/home/vagrant/.local/lib/python3.8/site-packages/packaging/version.py", line 202, in __init__
    focal:     raise InvalidVersion(f"Invalid version: '{version}'")
    focal: packaging.version.InvalidVersion: Invalid version: '1.0.3.linux-x86_64'
  • Loading branch information
peterbarker committed Jul 29, 2024
1 parent db8f000 commit 0ec7154
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tools/environment_install/install-prereqs-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ if [ -n "$PYTHON_VENV_PACKAGE" ]; then
fi

# try update packaging, setuptools and wheel before installing pip package that may need compilation
$PIP install $PIP_USER_ARGUMENT -U pip packaging setuptools wheel
SETUPTOOLS="setuptools"
if [ ${RELEASE_CODENAME} == 'focal' ]; then
setuptools==setuptools-70.3.0
fi
$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 0ec7154

Please sign in to comment.