Skip to content
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
45 changes: 45 additions & 0 deletions cpp/conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/bash

set -e
set -x

cd $RECIPE_DIR

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

cd ..

rm -rf conda-build
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

if [ `uname` == Linux ]; then
SHARED_LINKER_FLAGS='-static-libstdc++'
elif [ `uname` == Darwin ]; then
SHARED_LINKER_FLAGS=''
fi

cmake \
-DCMAKE_BUILD_TYPE=debug \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is debug just used here until we have more stable dev versions? Or do you plan to do debug dev version?
I'd prefer if we would make a ReleaseWithDebugSymbols build_type for dev versions.

-DCMAKE_INSTALL_PREFIX=$PREFIX \
-DCMAKE_SHARED_LINKER_FLAGS=$SHARED_LINKER_FLAGS \
-DARROW_IPC=on \
-DARROW_PARQUET=on \
..

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

build:
number: {{environ.get('TRAVIS_BUILD_NUMBER', 0)}} # [unix]
skip: true # [win]
script_env:
- CC [linux]
- CXX [linux]
- LD_LIBRARY_PATH [linux]

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

run:
- parquet-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)
1 change: 1 addition & 0 deletions cpp/src/arrow/types/primitive.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class NumericBuilder : public PrimitiveBuilder<T> {
using PrimitiveBuilder<T>::Append;
using PrimitiveBuilder<T>::Init;
using PrimitiveBuilder<T>::Resize;
using PrimitiveBuilder<T>::Reserve;

// Scalar append.
void Append(value_type val) {
Expand Down
18 changes: 18 additions & 0 deletions python/conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -ex

# Build dependency
export ARROW_HOME=$PREFIX

cd $RECIPE_DIR

echo Setting the compiler...
if [ `uname` == Linux ]; then
EXTRA_CMAKE_ARGS=-DCMAKE_SHARED_LINKER_FLAGS=-static-libstdc++
elif [ `uname` == Darwin ]; then
EXTRA_CMAKE_ARGS=
fi

cd ..
$PYTHON setup.py build_ext --extra-cmake-args=$EXTRA_CMAKE_ARGS || exit 1
$PYTHON setup.py install || exit 1
41 changes: 41 additions & 0 deletions python/conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package:
name: pyarrow
version: "0.1"

build:
number: {{environ.get('TRAVIS_BUILD_NUMBER', 0)}} # [unix]
rpaths:
- lib # [unix]
- lib/python{{environ.get('PY_VER')}}/site-packages/pyarrow # [unix]
script_env:
- CC [linux]
- CXX [linux]
- LD_LIBRARY_PATH [linux]
skip: true # [win]

requirements:
build:
- cmake
- python
- setuptools
- cython
- numpy
- pandas
- arrow-cpp
- pytest

run:
- arrow-cpp
- python
- numpy
- pandas
- six

test:
imports:
- pyarrow

about:
home: http://github.com/apache/arrow
license: Apache 2.0
summary: 'Python bindings for Arrow C++ and interoperability tool for pandas and NumPy'