Skip to content

Commit 4fdb3c2

Browse files
authored
Better pip check
Check only the major.minor version, not the patch version (otherwise `bc` can't compare them)
1 parent 78b2681 commit 4fdb3c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- uses: actions/checkout@v4
5757
- name: "Install Jupyter"
5858
run: |
59-
if (( $(echo "$(pip --version | awk '{print $2}') >= 23.1" |bc -l) )); then
59+
if (( $(echo "$(pip --version | awk '{print $2}' | cut -d'.' -f 1,2) >= 23.1" |bc -l) )); then
6060
FLAG='--break-system-packages'
6161
else
6262
FLAG=''

0 commit comments

Comments
 (0)