From 3393c10cc5574795bf35feb86aeac1cbd8269af6 Mon Sep 17 00:00:00 2001 From: Stuart Lynn Date: Thu, 16 Nov 2023 15:50:51 +0000 Subject: [PATCH] python gdal must be installed in `dist-packages` of GH-provided python interpreter --- .github/actions/python_build/action.yml | 2 +- .github/actions/scala_build/action.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/actions/python_build/action.yml b/.github/actions/python_build/action.yml index 3eab1778d..8a314cbb0 100644 --- a/.github/actions/python_build/action.yml +++ b/.github/actions/python_build/action.yml @@ -11,7 +11,7 @@ runs: shell: bash run: | cd python - pip install build wheel pyspark==${{ matrix.spark }} numpy==${{ matrix.numpy }} + pip install build wheel pyspark==${{ matrix.spark }} numpy==${{ matrix.numpy }} gdal==${{ matrix.gdal }} pip install . - name: Test and build python package shell: bash diff --git a/.github/actions/scala_build/action.yml b/.github/actions/scala_build/action.yml index c5f852581..5e12ead9a 100644 --- a/.github/actions/scala_build/action.yml +++ b/.github/actions/scala_build/action.yml @@ -21,7 +21,6 @@ runs: run : | sudo apt-get update && sudo apt-get install -y unixodbc libcurl3-gnutls libsnappy-dev libopenjp2-7 pip install databricks-mosaic-gdal==${{ matrix.gdal }} - ls /opt/hostedtoolcache/Python/${{ matrix.python }}/x64/lib/python3.9/site-packages/databricks-mosaic-gdal/resources/gdal-${{ matrix.gdal }}-filetree.tar.xz sudo tar -xf /opt/hostedtoolcache/Python/${{ matrix.python }}/x64/lib/python3.9/site-packages/databricks-mosaic-gdal/resources/gdal-${{ matrix.gdal }}-filetree.tar.xz -C / sudo tar -xhf /opt/hostedtoolcache/Python/${{ matrix.python }}/x64/lib/python3.9/site-packages/databricks-mosaic-gdal/resources/gdal-${{ matrix.gdal }}-symlinks.tar.xz -C / - name: Test and build the scala JAR - skip tests is false