Apache DataFusion SQL Query Engine
ARROW-4646: [C++/Packaging] Ship gandiva with the conda-forge packages
Krisztián Szűcs630fe6edf2b6
diff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.batindex 7e713e8565..d673f19457 100644--- a/dev/tasks/conda-recipes/arrow-cpp/bld.bat+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat@@ -28,6 +28,7 @@ cmake -G "%CMAKE_GENERATOR%" ^-DCMAKE_BUILD_TYPE=release ^-DARROW_PYTHON:BOOL=ON ^-DARROW_PARQUET:BOOL=ON ^+ -DARROW_GANDIVA:BOOL=ON ^-DARROW_ORC:BOOL=ON ^..diff --git a/dev/tasks/conda-recipes/arrow-cpp/build.sh b/dev/tasks/conda-recipes/arrow-cpp/build.shindex 98e7140a6e..a31289be14 100644--- a/dev/tasks/conda-recipes/arrow-cpp/build.sh+++ b/dev/tasks/conda-recipes/arrow-cpp/build.sh@@ -38,6 +38,7 @@ cmake \-DARROW_PLASMA=ON \-DARROW_PYTHON=ON \-DARROW_PARQUET=ON \+ -DARROW_GANDIVA=ON \-DARROW_ORC=ON \-DCMAKE_AR=${AR} \-DCMAKE_RANLIB=${RANLIB} \diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yamlindex 9a4c5d6fbe..c31b7e7b66 100644--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml@@ -31,8 +31,8 @@ build:requirements:build:- - cmake- autoconf # [unix]+ - cmake- ninja- {{ compiler('c') }}- {{ compiler('cxx') }}@@ -44,10 +44,12 @@ requirements:- gflags- glog- libprotobuf+ - llvmdev 7.*- lz4-c- numpy 1.14.*- python- rapidjson+ - re2- snappy- thrift-cpp >=0.11- zlib@@ -61,6 +63,7 @@ requirements:- glog- lz4-c- python+ - re2- snappy- zlib- zstd@@ -70,31 +73,38 @@ test:# headers- test -f $PREFIX/include/arrow/api.h # [unix]- test -f $PREFIX/include/plasma/client.h # [unix]+ - test -f $PREFIX/include/gandiva/engine.h # [unix]- test -f $PREFIX/include/parquet/api/reader.h # [unix]- if not exist %LIBRARY_INC%\\arrow\\api.h exit 1 # [win]+ - if not exist %LIBRARY_INC%\\gandiva\\engine.h exit 1 # [win]- if not exist %LIBRARY_INC%\\parquet\\api\\reader.h exit 1 # [win]# static- test -f $PREFIX/lib/libarrow.a # [unix]- test -f $PREFIX/lib/libarrow_python.a # [unix]- - test -f $PREFIX/lib/libparquet.a # [unix]- test -f $PREFIX/lib/libplasma.a # [unix]+ - test -f $PREFIX/lib/libparquet.a # [unix]+ - test -f $PREFIX/lib/libgandiva.a # [unix]- if not exist %PREFIX%\\Library\\lib\\arrow_static.lib exit 1 # [win]- if not exist %PREFIX%\\Library\\lib\\arrow_python_static.lib exit 1 # [win]- if not exist %PREFIX%\\Library\\lib\\parquet_static.lib exit 1 # [win]+ - if not exist %PREFIX%\\Library\\lib\\gandiva_static.lib exit 1 # [win]# shared- test -f $PREFIX/lib/libarrow.so # [linux]- test -f $PREFIX/lib/libarrow_python.so # [linux]- test -f $PREFIX/lib/libparquet.so # [linux]+ - test -f $PREFIX/lib/libgandiva.so # [linux]- test -f $PREFIX/lib/libplasma.so # [linux]- test -f $PREFIX/lib/libarrow.dylib # [osx]- test -f $PREFIX/lib/libarrow_python.dylib # [osx]+ - test -f $PREFIX/lib/libgandiva.dylib # [osx]- test -f $PREFIX/lib/libparquet.dylib # [osx]- test -f $PREFIX/lib/libplasma.dylib # [osx]- if not exist %PREFIX%\\Library\\bin\\arrow.dll exit 1 # [win]- if not exist %PREFIX%\\Library\\bin\\arrow_python.dll exit 1 # [win]- if not exist %PREFIX%\\Library\\bin\\parquet.dll exit 1 # [win]+ - if not exist %PREFIX%\\Library\\bin\\gandiva.dll exit 1 # [win]about:home: http://github.com/apache/arrowdiff --git a/dev/tasks/conda-recipes/pyarrow/bld.bat b/dev/tasks/conda-recipes/pyarrow/bld.batindex 8243bb8baa..10ac06cf1f 100644--- a/dev/tasks/conda-recipes/pyarrow/bld.bat+++ b/dev/tasks/conda-recipes/pyarrow/bld.bat@@ -31,7 +31,10 @@ copy /Y "%SRC_DIR%\cpp\cmake_modules\FindPythonLibsNew.cmake" cmake_modules\SET ARROW_HOME=%LIBRARY_PREFIX%"%PYTHON%" setup.py ^- build_ext --build-type=release --with-parquet ^- install --single-version-externally-managed --record=record.txt+ build_ext --build-type=release ^+ --with-parquet ^+ --with-gandiva ^+ install --single-version-externally-managed ^+ --record=record.txtif errorlevel 1 exit 1popddiff --git a/dev/tasks/conda-recipes/pyarrow/build.sh b/dev/tasks/conda-recipes/pyarrow/build.shindex 22116b2318..86471e72f1 100644--- a/dev/tasks/conda-recipes/pyarrow/build.sh+++ b/dev/tasks/conda-recipes/pyarrow/build.sh@@ -25,6 +25,12 @@ export ARROW_HOME=$PREFIXexport PARQUET_HOME=$PREFIXcd python+$PYTHON setup.py \- build_ext --build-type=release --with-parquet --with-plasma --with-orc \- install --single-version-externally-managed --record=record.txt+ build_ext --build-type=release \+ --with-orc \+ --with-plasma \+ --with-parquet \+ --with-gandiva \+ install --single-version-externally-managed \+ --record=record.txtdiff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yamlindex 9f6ae79dc6..854d9fa97e 100644--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml@@ -57,8 +57,9 @@ requirements:test:imports:- pyarrow- - pyarrow.parquet- pyarrow.plasma # [unix]+ - pyarrow.parquet+ - pyarrow.gandiva # [py>=35]requires:- pytestdiff --git a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython2.7.yaml b/dev/tasks/conda-recipes/variants/linux_python2.7.yamlsimilarity index 75%rename from dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython2.7.yamlrename to dev/tasks/conda-recipes/variants/linux_python2.7.yamlindex 149d5fdffc..d92357b805 100644--- a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython2.7.yaml+++ b/dev/tasks/conda-recipes/variants/linux_python2.7.yaml@@ -1,19 +1,17 @@boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- gccchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- gcccxx_compiler:- gxxdocker_image:- condaforge/linux-anvil-comp7libprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1pin_run_as_build:@@ -36,13 +34,6 @@ python:- '2.7'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - docker_image- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.7.yaml b/dev/tasks/conda-recipes/variants/linux_python3.6.yamlsimilarity index 76%rename from dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.7.yamlrename to dev/tasks/conda-recipes/variants/linux_python3.6.yamlindex e5dbba5b34..a934bd1687 100644--- a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.7.yaml+++ b/dev/tasks/conda-recipes/variants/linux_python3.6.yaml@@ -1,19 +1,17 @@boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- gccchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- gcccxx_compiler:- gxxdocker_image:- condaforge/linux-anvil-comp7libprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1pin_run_as_build:@@ -33,16 +31,9 @@ pin_run_as_build:zstd:max_pin: x.x.xpython:-- '3.7'+- '3.6'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - docker_image- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.6.yaml b/dev/tasks/conda-recipes/variants/linux_python3.7.yamlsimilarity index 74%rename from dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.6.yamlrename to dev/tasks/conda-recipes/variants/linux_python3.7.yamlindex b71d9de27b..736cd01ba2 100644--- a/dev/tasks/conda-recipes/variants/linux_c_compilergcccxx_compilergxxpython3.6.yaml+++ b/dev/tasks/conda-recipes/variants/linux_python3.7.yaml@@ -1,19 +1,17 @@boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- gccchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- gcccxx_compiler:- gxxdocker_image:- condaforge/linux-anvil-comp7libprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1pin_run_as_build:@@ -33,16 +31,9 @@ pin_run_as_build:zstd:max_pin: x.x.xpython:-- '3.6'+- '3.7'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - docker_image- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython2.7.yaml b/dev/tasks/conda-recipes/variants/osx_python2.7.yamlsimilarity index 79%rename from dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython2.7.yamlrename to dev/tasks/conda-recipes/variants/osx_python2.7.yamlindex 85d3db6a5a..2817157c23 100644--- a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython2.7.yaml+++ b/dev/tasks/conda-recipes/variants/osx_python2.7.yaml@@ -2,18 +2,16 @@ MACOSX_DEPLOYMENT_TARGET:- '10.9'boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- clangchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- clangcxx_compiler:- clangxxlibprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1macos_machine:@@ -40,12 +38,6 @@ python:- '2.7'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.7.yaml b/dev/tasks/conda-recipes/variants/osx_python3.6.yamlsimilarity index 80%rename from dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.7.yamlrename to dev/tasks/conda-recipes/variants/osx_python3.6.yamlindex 4e4a8df8bd..5e87a2d7ec 100644--- a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.7.yaml+++ b/dev/tasks/conda-recipes/variants/osx_python3.6.yaml@@ -2,18 +2,16 @@ MACOSX_DEPLOYMENT_TARGET:- '10.9'boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- clangchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- clangcxx_compiler:- clangxxlibprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1macos_machine:@@ -37,15 +35,9 @@ pin_run_as_build:zstd:max_pin: x.x.xpython:-- '3.7'+- '3.6'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.6.yaml b/dev/tasks/conda-recipes/variants/osx_python3.7.yamlsimilarity index 78%rename from dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.6.yamlrename to dev/tasks/conda-recipes/variants/osx_python3.7.yamlindex 4fd6bd2b52..631716d23e 100644--- a/dev/tasks/conda-recipes/variants/osx_c_compilerclangcxx_compilerclangxxpython3.6.yaml+++ b/dev/tasks/conda-recipes/variants/osx_python3.7.yaml@@ -2,18 +2,16 @@ MACOSX_DEPLOYMENT_TARGET:- '10.9'boost_cpp:- 1.68.0-build_number_decrement:-- '0'+c_compiler:+- clangchannel_sources:- conda-forge,defaultschannel_targets:- conda-forge main-c_compiler:-- clangcxx_compiler:- clangxxlibprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1macos_machine:@@ -37,15 +35,9 @@ pin_run_as_build:zstd:max_pin: x.x.xpython:-- '3.6'+- '3.7'snappy:- 1.1.7-zip_keys:-- - c_compiler- - cxx_compiler- - channel_sources- - channel_targets- - build_number_decrementzlib:- '1.2'zstd:diff --git a/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7.yaml b/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yamlsimilarity index 93%rename from dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7.yamlrename to dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yamlindex 06bd37d5ea..b87a06eb3a 100644--- a/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7.yaml+++ b/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6vc14.yaml@@ -9,7 +9,7 @@ channel_targets:cxx_compiler:- vs2015libprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1pin_run_as_build:@@ -24,16 +24,21 @@ pin_run_as_build:max_pin: x.xsnappy:max_pin: x.x.x+ vc:+ max_pin: xzlib:max_pin: x.xzstd:max_pin: x.x.xpython:-- '3.7'+- '3.6'snappy:- 1.1.7+vc:+- '14'zip_keys:- - python+ - vc- c_compiler- cxx_compilerzlib:diff --git a/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6.yaml b/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yamlsimilarity index 90%rename from dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6.yamlrename to dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yamlindex 5a57d02fd0..5c710ffa5e 100644--- a/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.6.yaml+++ b/dev/tasks/conda-recipes/variants/win_c_compilervs2015cxx_compilervs2015python3.7vc14.yaml@@ -9,7 +9,7 @@ channel_targets:cxx_compiler:- vs2015libprotobuf:-- '3.6'+- '3.7'lz4_c:- 1.8.1pin_run_as_build:@@ -24,16 +24,21 @@ pin_run_as_build:max_pin: x.xsnappy:max_pin: x.x.x+ vc:+ max_pin: xzlib:max_pin: x.xzstd:max_pin: x.x.xpython:-- '3.6'+- '3.7'snappy:- 1.1.7+vc:+- '14'zip_keys:- - python+ - vc- c_compiler- cxx_compilerzlib:diff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex 751420c3e6..6131f31387 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -68,7 +68,7 @@ tasks:platform: linuxtemplate: conda-recipes/travis.linux.ymlparams:- config: linux_c_compilergcccxx_compilergxxpython2.7+ config: linux_python2.7artifacts:- arrow-cpp-{no_rc_version}-py27(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py27(h[a-z0-9]+)_0.tar.bz2@@ -77,7 +77,7 @@ tasks:platform: linuxtemplate: conda-recipes/travis.linux.ymlparams:- config: linux_c_compilergcccxx_compilergxxpython3.6+ config: linux_python3.6artifacts:- arrow-cpp-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2@@ -86,7 +86,7 @@ tasks:platform: linuxtemplate: conda-recipes/travis.linux.ymlparams:- config: linux_c_compilergcccxx_compilergxxpython3.7+ config: linux_python3.7artifacts:- arrow-cpp-{no_rc_version}-py37(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py37(h[a-z0-9]+)_0.tar.bz2@@ -97,7 +97,7 @@ tasks:platform: osxtemplate: conda-recipes/travis.osx.ymlparams:- config: osx_c_compilerclangcxx_compilerclangxxpython2.7+ config: osx_python2.7artifacts:- arrow-cpp-{no_rc_version}-py27(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py27(h[a-z0-9]+)_0.tar.bz2@@ -106,7 +106,7 @@ tasks:platform: osxtemplate: conda-recipes/travis.osx.ymlparams:- config: osx_c_compilerclangcxx_compilerclangxxpython3.6+ config: osx_python3.6artifacts:- arrow-cpp-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2@@ -115,7 +115,7 @@ tasks:platform: osxtemplate: conda-recipes/travis.osx.ymlparams:- config: osx_c_compilerclangcxx_compilerclangxxpython3.7+ config: osx_python3.7artifacts:- arrow-cpp-{no_rc_version}-py37(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py37(h[a-z0-9]+)_0.tar.bz2@@ -126,7 +126,7 @@ tasks:platform: wintemplate: conda-recipes/appveyor.ymlparams:- config: win_c_compilervs2015cxx_compilervs2015python3.6+ config: win_c_compilervs2015cxx_compilervs2015python3.6vc14artifacts:- arrow-cpp-{no_rc_version}-py36_vc14(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py36(h[a-z0-9]+)_0.tar.bz2@@ -135,7 +135,7 @@ tasks:platform: wintemplate: conda-recipes/appveyor.ymlparams:- config: win_c_compilervs2015cxx_compilervs2015python3.7+ config: win_c_compilervs2015cxx_compilervs2015python3.7vc14artifacts:- arrow-cpp-{no_rc_version}-py37_vc14(h[a-z0-9]+)_0.tar.bz2- pyarrow-{no_rc_version}-py37(h[a-z0-9]+)_0.tar.bz2