Skip to content

Commit

Permalink
CI Conda: add patch to enable OGR_REGISTER_DRIVER_ARROW/PARQUET_FOR_L…
Browse files Browse the repository at this point in the history
…ATER_PLUGIN
  • Loading branch information
rouault committed Nov 6, 2023
1 parent bc08bf8 commit 82de1f3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ci/travis/conda/bld.bat.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/recipe/bld.bat b/recipe/bld.bat
index b6616ae..b98a480 100644
--- a/recipe/bld.bat
+++ b/recipe/bld.bat
@@ -32,6 +32,8 @@ cmake -G "Ninja" ^
-DGDAL_USE_PARQUET=OFF ^
-DGDAL_USE_ARROW=OFF ^
-DGDAL_USE_ARROWDATASET=OFF ^
+ -DOGR_REGISTER_DRIVER_ARROW_FOR_LATER_PLUGIN=ON ^
+ -DOGR_REGISTER_DRIVER_PARQUET_FOR_LATER_PLUGIN=ON ^
"%SRC_DIR%"

if errorlevel 1 exit /b 1
13 changes: 13 additions & 0 deletions ci/travis/conda/build.sh.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/recipe/build.sh b/recipe/build.sh
index a3474a2..249dc89 100644
--- a/recipe/build.sh
+++ b/recipe/build.sh
@@ -23,6 +23,8 @@ cmake -G "Unix Makefiles" \
-DGDAL_USE_PARQUET=OFF \
-DGDAL_USE_ARROW=OFF \
-DGDAL_USE_ARROWDATASET=OFF \
+ -DOGR_REGISTER_DRIVER_ARROW_FOR_LATER_PLUGIN=ON \
+ -DOGR_REGISTER_DRIVER_PARQUET_FOR_LATER_PLUGIN=ON \
-DGDAL_ENABLE_HDF5_GLOBAL_LOCK:BOOL=ON \
-DBUILD_PYTHON_BINDINGS:BOOL=OFF \
-DBUILD_JAVA_BINDINGS:BOOL=OFF \
6 changes: 6 additions & 0 deletions ci/travis/conda/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ conda install -c conda-forge conda-build -y
git clone https://github.com/conda-forge/gdal-feedstock.git

cd gdal-feedstock

# Set -DOGR_REGISTER_DRIVER_ARROW_FOR_LATER_PLUGIN=ON and -DOGR_REGISTER_DRIVER_PARQUET_FOR_LATER_PLUGIN=ON
# To be dropped once that's upstreamed in conda-forge/gdal-feedstock.git
patch -p1 < ../ci/travis/conda/build.sh.patch
patch -p1 --binary < ../ci/travis/conda/bld.bat.patch

cat > recipe/recipe_clobber.yaml <<EOL
source:
path: ../../../gdal
Expand Down

0 comments on commit 82de1f3

Please sign in to comment.