Skip to content

Commit 0a51b05

Browse files
committed
tests: don't install a setuptools newer than 81.x
Some of the ancient package versions we are testing are depending on pkg_resources that got dropped in setuptools 82.
1 parent 8dc5fec commit 0a51b05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/scripts/run_tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
set -e
44

55
export PATH=${HOME}/.local/bin:${PATH}
6-
python -m pip install --user -U pip setuptools --cache-dir "${PIP_CACHE}"
6+
# setuptools 82 dropped pkg_resources but that is required by some old versions of packages we are testing
7+
python -m pip install --user -U pip 'setuptools<82' --cache-dir "${PIP_CACHE}"
78
python -m pip install --user -r "tests/requirements/reqs-${FRAMEWORK}.txt" --cache-dir "${PIP_CACHE}"
89

910
export PYTHON_VERSION=$(python -c "import platform; pv=platform.python_version_tuple(); print('pypy' + ('' if pv[0] == 2 else str(pv[0])) if platform.python_implementation() == 'PyPy' else '.'.join(map(str, platform.python_version_tuple()[:2])))")

0 commit comments

Comments
 (0)