Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARROW-196: Add conda recipe and ensure that libarrow_parquet is installed as well #76

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions cpp/conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

set -e
set -x

cd $RECIPE_DIR

# Build dependencies
export FLATBUFFERS_HOME=$PREFIX
export PARQUET_HOME=$PREFIX

cd ..

mkdir conda-build

cp -r thirdparty conda-build/

cd conda-build
pwd

# Build googletest for running unit tests
./thirdparty/download_thirdparty.sh
./thirdparty/build_thirdparty.sh gtest

source thirdparty/versions.sh
export GTEST_HOME=`pwd`/thirdparty/$GTEST_BASEDIR

cmake \
-DCMAKE_BUILD_TYPE=release \
-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DARROW_IPC=on \
-DARROW_PARQUET=on \
..

make
ctest -L unittest
make install
25 changes: 25 additions & 0 deletions cpp/conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package:
name: arrow-cpp
version: "0.1"

build:
number: {{environ.get('TRAVIS_BUILD_NUMBER', 0)}} # [unix]
skip: true # [win]

requirements:
build:
- cmake
- flatbuffers
- parquet-cpp
- thrift-cpp

test:
commands:
- test -f $PREFIX/lib/libarrow.so
- test -f $PREFIX/lib/libarrow_parquet.so
- test -f $PREFIX/include/arrow/api.h

about:
home: http://github.com/apache/arrow
license: Apache 2.0
summary: 'C++ libraries for the reference Apache Arrow implementation'
7 changes: 7 additions & 0 deletions cpp/src/arrow/parquet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@ ARROW_TEST_LINK_LIBRARIES(parquet-reader-test arrow_parquet)

# Headers: top level
install(FILES
reader.h
schema.h
utils.h
DESTINATION include/arrow/parquet)

install(TARGETS arrow_parquet
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)