From c74682cd129ac18401f46b0102348fb458bfe43b Mon Sep 17 00:00:00 2001 From: karen-an <108370177+karen-an@users.noreply.github.com> Date: Wed, 15 Jan 2025 14:58:14 -0800 Subject: [PATCH] Update python-crop-image.yml Install GDAL dependencies --- .github/workflows/python-crop-image.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-crop-image.yml b/.github/workflows/python-crop-image.yml index adc5f2d..a78a7cd 100644 --- a/.github/workflows/python-crop-image.yml +++ b/.github/workflows/python-crop-image.yml @@ -23,9 +23,19 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.9.21" - - name: Install dependencies + # - name: Install dependencies + # run: | + # python -m pip install --upgrade pip + # pip install -r requirements.txt + - name: Install GDAL dependencies + run: | + sudo apt-get update + sudo apt-get install -y gdal-bin libgdal-dev + + - name: Install Python dependencies run: | - python -m pip install --upgrade pip + pip install --upgrade pip + pip install pygdal==$(gdal-config --version).* --global-option=build_ext --global-option="-I$(gdal-config --cflags | sed -e 's/-I//g')" --global-option="-L$(gdal-config --libs | sed -e 's/-L//g')" pip install -r requirements.txt - name: Run Jupyter notebook run: jupyter execute crop_image.pynb