Skip to content

Commit 7f21ca6

Browse files
CopilotKaniska244
andcommitted
Use version comparison to support pip >= 26.0 (including 27.x, 28.x)
Co-authored-by: Kaniska244 <[email protected]>
1 parent 739340a commit 7f21ca6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/universal/test-project/test.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ checkPythonPackageVersion "python" "requests" "2.31.0"
183183

184184
## Python -alternative version 3.11. Must be removed when pinned version 3.11 is updated to a different python version.
185185
checkPythonPackageVersion "/usr/local/python/3.11.*/bin/python" "setuptools" "78.1.1"
186-
check "pip-version-for-3.11" bash -c "/usr/local/python/3.11.*/bin/python -m pip --version | grep -E '26\.[0-9]+(\.[0-9]+)?'"
186+
pip_version_3_11=$(/usr/local/python/3.11.*/bin/python -m pip --version)
187+
check-version-ge "pip-version-for-3.11" "${pip_version_3_11}" "pip 26.0"
187188

188189
## Conda Python
189190
checkCondaPackageVersion "requests" "2.31.0"

0 commit comments

Comments
 (0)