Apache DataFusion SQL Query Engine
ARROW-5511: [Packaging] Enable Flight in Conda packages
Krisztián Szűcsdf032f7422f1
diff --git a/dev/tasks/conda-recipes/appveyor.win.yml b/dev/tasks/conda-recipes/appveyor.win.ymlindex 121595a679..48252f271a 100644--- a/dev/tasks/conda-recipes/appveyor.win.yml+++ b/dev/tasks/conda-recipes/appveyor.win.yml@@ -29,6 +29,7 @@ test_script:- git clone --no-checkout {{ arrow.remote }} arrow || exit /B- git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} || exit /B- git -C arrow checkout FETCH_HEAD || exit /B+ - git -C arrow submodule update --init --recursive || exit /B- pushd arrow\dev\tasks\conda-recipesdiff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.batindex 429cb642d5..d3ea1b2469 100644--- a/dev/tasks/conda-recipes/arrow-cpp/bld.bat+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat@@ -10,10 +10,12 @@ cmake -G "%CMAKE_GENERATOR%" ^-DARROW_BUILD_TESTS:BOOL=OFF ^-DARROW_BUILD_UTILITIES:BOOL=OFF ^-DCMAKE_BUILD_TYPE=release ^+ -DARROW_FLIGHT:BOOL=ON ^-DARROW_PYTHON:BOOL=ON ^-DARROW_PARQUET:BOOL=ON ^-DARROW_GANDIVA:BOOL=ON ^-DARROW_ORC:BOOL=ON ^+ -Duriparser_SOURCE=BUNDLED ^..cmake --build . --target INSTALL --config Releasediff --git a/dev/tasks/conda-recipes/arrow-cpp/build.sh b/dev/tasks/conda-recipes/arrow-cpp/build.shindex b18862a83f..0c4414d378 100644--- a/dev/tasks/conda-recipes/arrow-cpp/build.sh+++ b/dev/tasks/conda-recipes/arrow-cpp/build.sh@@ -19,12 +19,14 @@ cmake \-DCMAKE_INSTALL_LIBDIR=$PREFIX/lib \-DLLVM_TOOLS_BINARY_DIR=$PREFIX/bin \-DARROW_DEPENDENCY_SOURCE=SYSTEM \+ -Duriparser_SOURCE=BUNDLED \-DARROW_PACKAGE_PREFIX=$PREFIX \-DARROW_BOOST_USE_SHARED=ON \-DARROW_BUILD_BENCHMARKS=OFF \-DARROW_BUILD_UTILITIES=OFF \-DARROW_BUILD_TESTS=OFF \-DARROW_JEMALLOC=ON \+ -DARROW_FLIGHT=ON \-DARROW_PLASMA=ON \-DARROW_PYTHON=ON \-DARROW_PARQUET=ON \diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yamlindex 877bfc6021..3fd43f3c85 100644--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml@@ -22,10 +22,12 @@ requirements:host:- boost-cpp- brotli+ - c-ares- double-conversion- flatbuffers- gflags- glog+ - grpc-cpp- libprotobuf- clangdev 7.*- llvmdev 7.*@@ -44,9 +46,11 @@ requirements:- {{ pin_compatible('numpy', lower_bound='1.14') }}- boost-cpp- brotli+ - c-ares- double-conversion- gflags- glog+ - grpc-cpp- lz4-c- python- re2@@ -58,6 +62,7 @@ test:commands:# headers- test -f $PREFIX/include/arrow/api.h # [unix]+ - test -f $PREFIX/include/arrow/flight/types.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]@@ -67,17 +72,20 @@ test:# static- test -f $PREFIX/lib/libarrow.a # [unix]+ - test -f $PREFIX/lib/libarrow_flight.a # [unix]- test -f $PREFIX/lib/libarrow_python.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_flight_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_flight.so # [linux]- test -f $PREFIX/lib/libarrow_python.so # [linux]- test -f $PREFIX/lib/libparquet.so # [linux]- test -f $PREFIX/lib/libgandiva.so # [linux]@@ -88,6 +96,7 @@ test:- 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_flight.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]diff --git a/dev/tasks/conda-recipes/azure.linux.yml b/dev/tasks/conda-recipes/azure.linux.ymlindex 355f3b18b8..e398dca82f 100755--- a/dev/tasks/conda-recipes/azure.linux.yml+++ b/dev/tasks/conda-recipes/azure.linux.yml@@ -23,6 +23,7 @@ jobs:git clone --no-checkout {{ arrow.remote }} arrowgit -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursivedisplayName: Clone arrow- script: CI=azure ./run_docker_build.shdiff --git a/dev/tasks/conda-recipes/azure.osx.yml b/dev/tasks/conda-recipes/azure.osx.ymlindex 7ff3570766..95f76f0fc5 100755--- a/dev/tasks/conda-recipes/azure.osx.yml+++ b/dev/tasks/conda-recipes/azure.osx.yml@@ -30,6 +30,7 @@ jobs:git clone --no-checkout {{ arrow.remote }} arrowgit -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursivedisplayName: Clone arrow- script: |diff --git a/dev/tasks/conda-recipes/azure.win.yml b/dev/tasks/conda-recipes/azure.win.ymlindex 02fc91ae63..69029088f7 100755--- a/dev/tasks/conda-recipes/azure.win.yml+++ b/dev/tasks/conda-recipes/azure.win.yml@@ -52,6 +52,7 @@ jobs:git clone --no-checkout {{ arrow.remote }} arrowgit -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursivedisplayName: Clone arrow# Configure the VMdiff --git a/dev/tasks/conda-recipes/pyarrow/bld.bat b/dev/tasks/conda-recipes/pyarrow/bld.batindex d02ceaffe4..28eb76a2fd 100644--- a/dev/tasks/conda-recipes/pyarrow/bld.bat+++ b/dev/tasks/conda-recipes/pyarrow/bld.bat@@ -14,10 +14,11 @@ copy /Y "%SRC_DIR%\cpp\cmake_modules\FindPythonLibsNew.cmake" cmake_modules\SET ARROW_HOME=%LIBRARY_PREFIX%SET SETUPTOOLS_SCM_PRETEND_VERSION=%PKG_VERSION%+SET PYARROW_WITH_FLIGHT=1+SET PYARROW_WITH_GANDIVA=1+SET PYARROW_WITH_PARQUET=1"%PYTHON%" setup.py ^build_ext --build-type=release ^- --with-parquet ^- --with-gandiva ^install --single-version-externally-managed ^--record=record.txtif errorlevel 1 exit 1diff --git a/dev/tasks/conda-recipes/pyarrow/build.sh b/dev/tasks/conda-recipes/pyarrow/build.shindex 98b10a42e5..161546febe 100644--- a/dev/tasks/conda-recipes/pyarrow/build.sh+++ b/dev/tasks/conda-recipes/pyarrow/build.sh@@ -12,6 +12,7 @@ cd python$PYTHON setup.py \build_ext --build-type=release \+ --with-flight \--with-orc \--with-plasma \--with-parquet \diff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yamlindex 8198390ac5..acd89af8ae 100644--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml@@ -45,6 +45,7 @@ requirements:test:imports:- pyarrow+ - pyarrow.flight # [py>=35]- pyarrow.plasma # [unix]- pyarrow.parquet- pyarrow.gandiva # [py>=35]@@ -54,7 +55,7 @@ test:- hypothesiscommands:- - pytest --pyargs pyarrow+ - pytest -m "not requires_testing_data" --pyargs pyarrowabout:home: http://github.com/apache/arrow