From 185af7fd17ee12f9eef2beae03d0f81d13876fab Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Thu, 6 Feb 2025 11:47:17 -0500 Subject: [PATCH] Refactor CI workflow to install pip using get-pip.py and ensure system package compatibility --- .github/workflows/django.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 007041ff..74015208 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -50,15 +50,17 @@ jobs: echo "Settings module:" $DJANGO_SETTINGS_MODULE - name: Setup Python and pip run: | - python -m ensurepip --upgrade - python -m pip install --upgrade pip setuptools wheel + curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py + python get-pip.py --break-system-packages + python -m pip --version - name: Install Dependencies env: GDAL_LIBRARY_PATH: /usr/lib/x86_64-linux-gnu/libgdal.so run: | + python -m pip install --upgrade pip setuptools wheel GDAL_VERSION=$(gdal-config --version) - pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal" - pip install -r requirements.txt + python -m pip install GDAL==$GDAL_VERSION --global-option=build_ext --global-option="-I/usr/include/gdal" + python -m pip install -r requirements.txt - name: Verify GDAL Installation run: | pwd