Skip to content

Apache DataFusion SQL Query Engine

ARROW-3181: [Packaging] Adjust conda package scripts to account for Parquet codebase migration

Krisztián Szűcs8774f76204db
diff --git a/dev/tasks/conda-recipes/arrow-cpp/bld.bat b/dev/tasks/conda-recipes/arrow-cpp/bld.bat
index 5356a46f02..de08c6cf9f 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/bld.bat
+++ b/dev/tasks/conda-recipes/arrow-cpp/bld.bat
@@ -27,6 +27,7 @@ cmake -G "%CMAKE_GENERATOR%" ^
-DARROW_BUILD_UTILITIES:BOOL=OFF ^
-DCMAKE_BUILD_TYPE=release ^
-DARROW_PYTHON:BOOL=ON ^
+ -DARROW_PARQUET: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.sh
index 8b397645e7..3ae3bed389 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_JEMALLOC=ON \
-DARROW_PLASMA=ON \
-DARROW_PYTHON=ON \
+ -DARROW_PARQUET=ON \
-DARROW_ORC=ON \
..
diff --git a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
index 07044afa5a..69a519fd59 100644
--- a/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
+++ b/dev/tasks/conda-recipes/arrow-cpp/meta.yaml
@@ -37,6 +37,7 @@ requirements:
- {{ compiler('cxx') }}
host:
- boost-cpp
+ - thrift-cpp >=0.11
- libprotobuf
- flatbuffers
- rapidjson
@@ -58,16 +59,34 @@ requirements:
test:
commands:
- - test -f $PREFIX/lib/libarrow.a # [unix]
- - test -f $PREFIX/lib/libarrow.so # [linux]
- - test -f $PREFIX/lib/libarrow_python.so # [linux]
- - test -f $PREFIX/lib/libplasma.so # [linux]
- - test -f $PREFIX/lib/libarrow.dylib # [osx]
+ # headers
+ - test -f $PREFIX/include/arrow/api.h # [unix]
+ - test -f $PREFIX/include/plasma/client.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%\\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]
+ - 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]
+
+ # 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/libplasma.so # [linux]
+ - test -f $PREFIX/lib/libarrow.dylib # [osx]
- test -f $PREFIX/lib/libarrow_python.dylib # [osx]
- - test -f $PREFIX/lib/libplasma.dylib # [osx]
- - if not exist %LIBRARY_INC%\\arrow\\api.h exit 1 # [win]
+ - 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]
about:
home: http://github.com/apache/arrow
@@ -84,3 +103,6 @@ extra:
- pcmoritz
- robertnishihara
- siddharthteotia
+ - kou
+ - kszucs
+ - pitrou
diff --git a/dev/tasks/conda-recipes/parquet-cpp/bld.bat b/dev/tasks/conda-recipes/parquet-cpp/bld.bat
deleted file mode 100644
index 8b88eb5770..0000000000
--- a/dev/tasks/conda-recipes/parquet-cpp/bld.bat
+++ /dev/null
@@ -1,32 +0,0 @@
-@rem Licensed to the Apache Software Foundation (ASF) under one
-@rem or more contributor license agreements. See the NOTICE file
-@rem distributed with this work for additional information
-@rem regarding copyright ownership. The ASF licenses this file
-@rem to you under the Apache License, Version 2.0 (the
-@rem "License"); you may not use this file except in compliance
-@rem with the License. You may obtain a copy of the License at
-@rem
-@rem http://www.apache.org/licenses/LICENSE-2.0
-@rem
-@rem Unless required by applicable law or agreed to in writing,
-@rem software distributed under the License is distributed on an
-@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-@rem KIND, either express or implied. See the License for the
-@rem specific language governing permissions and limitations
-@rem under the License.
-
-set PARQUET_BUILD_TOOLCHAIN=%LIBRARY_PREFIX%
-
-REM Set short build path to not overcome max obj files path length of 150 characters on Windows
-mkdir C:\bld\build
-pushd C:\bld\build
-
-cmake -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release ^
- -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
- -DPARQUET_BOOST_USE_SHARED=ON ^
- -DPARQUET_BUILD_TESTS=OFF ^
- "%SRC_DIR%"
-
-cmake --build . --target install --config Release
-
-popd
diff --git a/dev/tasks/conda-recipes/parquet-cpp/build.sh b/dev/tasks/conda-recipes/parquet-cpp/build.sh
deleted file mode 100644
index 14a93c3450..0000000000
--- a/dev/tasks/conda-recipes/parquet-cpp/build.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements. See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership. The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied. See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-set -e
-set -x
-
-export PARQUET_BUILD_TOOLCHAIN=$PREFIX
-
-mkdir build-dir
-cd build-dir
-
-cmake \
- -DCMAKE_BUILD_TYPE=release \
- -DCMAKE_INSTALL_PREFIX=$PREFIX \
- -DCMAKE_INSTALL_LIBDIR=$PREFIX/lib \
- -DPARQUET_BOOST_USE_SHARED=ON \
- -DPARQUET_BUILD_BENCHMARKS=OFF \
- -DPARQUET_BUILD_EXECUTABLES=OFF \
- -DPARQUET_BUILD_TESTS=OFF \
- ..
-
-make -j${CPU_COUNT}
-make install
diff --git a/dev/tasks/conda-recipes/parquet-cpp/meta.yaml b/dev/tasks/conda-recipes/parquet-cpp/meta.yaml
index 9a9b598921..ad21741bc1 100644
--- a/dev/tasks/conda-recipes/parquet-cpp/meta.yaml
+++ b/dev/tasks/conda-recipes/parquet-cpp/meta.yaml
@@ -15,54 +15,43 @@
# specific language governing permissions and limitations
# under the License.
-{% set version = "1.4.0.post0" %}
-{% set commit = "master" %}
+# ARROW-3229: this is a meta-package to prevent conflicts in the future
-# NOTE(wesm): When updating the build, please remember also to update the
-# pinned Arrow version. We are letting parquet-cpp build its own Apache Arrow
-# so that we do not have to update conda-packages for Arrow before we can
-# update this package. So if there is an ABI change in Arrow, we can update
-# this package faster
+{% set version = "1.5.0" %}
package:
name: parquet-cpp
version: {{ version }}
-source:
- fn: {{ commit }}.tar.gz
- url: https://github.com/apache/parquet-cpp/archive/{{ commit }}.tar.gz
-
build:
number: 0
skip: true # [win32]
skip: true # [win and py<35]
requirements:
- build:
- - cmake
- - {{ compiler('c') }}
- - {{ compiler('cxx') }}
host:
- - boost-cpp
- - thrift-cpp >=0.11
- arrow-cpp {{ ARROW_VERSION }}
run:
- - boost-cpp
- arrow-cpp {{ ARROW_VERSION }}
test:
commands:
- - test -f $PREFIX/lib/libparquet.so # [linux]
- - test -f $PREFIX/lib/libparquet.dylib # [osx]
- - test -f $PREFIX/include/parquet/api/reader.h # [unix]
- - if not exist %PREFIX%\\Library\\include\\parquet\\api\\reader.h exit 1 # [win]
- - if not exist %PREFIX%\\Library\\bin\\parquet.dll exit 1 # [win]
- - if not exist %PREFIX%\\Library\\lib\\parquet.lib exit 1 # [win]
- - if not exist %PREFIX%\\Library\\lib\\parquet_static.lib exit 1 # [win]
+ # headers
+ - test -f $PREFIX/include/parquet/api/reader.h # [unix]
+ - if not exist %LIBRARY_INC%\\parquet\\api\\reader.h exit 1 # [win]
+
+ # static
+ - test -f $PREFIX/lib/libparquet.a # [unix]
+ - if not exist %PREFIX%\\Library\\lib\\parquet_static.lib exit 1 # [win]
+
+ # shared
+ - test -f $PREFIX/lib/libparquet.so # [linux]
+ - test -f $PREFIX/lib/libparquet.dylib # [osx]
+ - if not exist %PREFIX%\\Library\\bin\\parquet.dll exit 1 # [win]
about:
- home: http://github.com/apache/parquet-cpp
+ home: http://github.com/apache/arrow
license: Apache 2.0
summary: 'C++ libraries for the Apache Parquet file format'
@@ -74,3 +63,6 @@ extra:
- jreback
- cpcloud
- siddharthteotia
+ - kou
+ - kszucs
+ - pitrou
diff --git a/dev/tasks/conda-recipes/pyarrow/meta.yaml b/dev/tasks/conda-recipes/pyarrow/meta.yaml
index 24ba58410c..ddccd9c997 100644
--- a/dev/tasks/conda-recipes/pyarrow/meta.yaml
+++ b/dev/tasks/conda-recipes/pyarrow/meta.yaml
@@ -41,7 +41,6 @@ requirements:
- numpy 1.12.* # [win and py>=36]
- six
- arrow-cpp {{ ARROW_VERSION }}
- - parquet-cpp 1.4.0.post0
run:
- python
@@ -50,9 +49,8 @@ requirements:
- {{ pin_compatible('numpy', lower_bound='1.12') }} # [win and py>=36]
- pandas
- six
- - arrow-cpp {{ ARROW_VERSION }}
- - parquet-cpp 1.4.0.post0
- futures # [py27]
+ - arrow-cpp {{ ARROW_VERSION }}
test:
imports:
@@ -74,3 +72,6 @@ extra:
- pcmoritz
- robertnishihara
- siddharthteotia
+ - kou
+ - kszucs
+ - pitrou