Skip to content

Apache DataFusion SQL Query Engine

ARROW-3381: [C++] Add bz2 codec

Antoine Pitrou55aa39ae70e7
diff --git a/ci/appveyor-cpp-build.bat b/ci/appveyor-cpp-build.bat
index 3589871653..bce722ffa9 100644
--- a/ci/appveyor-cpp-build.bat
+++ b/ci/appveyor-cpp-build.bat
@@ -99,6 +99,7 @@ if "%JOB%" == "Toolchain" (
@rem Install pre-built "toolchain" packages for faster builds
conda install -q -y ^
brotli ^
+ bzip2 ^
cmake ^
flatbuffers ^
gflags ^
diff --git a/ci/cpp-msvc-build-main.bat b/ci/cpp-msvc-build-main.bat
index 5ddb648d50..e5eef1e5d8 100644
--- a/ci/cpp-msvc-build-main.bat
+++ b/ci/cpp-msvc-build-main.bat
@@ -19,6 +19,11 @@
@rem (i.e. for usual configurations)
set ARROW_HOME=%CONDA_PREFIX%\Library
+set CMAKE_ARGS=
+
+if "%JOB%" == "Toolchain" (
+ set CMAKE_ARGS=%CMAKE_ARGS% -DARROW_WITH_BZ2=ON
+)
@rem Retrieve git submodules, configure env var for Parquet unit tests
git submodule update --init || exit /B
@@ -38,7 +43,7 @@ set CMAKE_CXX_FLAGS_RELEASE=/Od /UNDEBUG
mkdir cpp\build
pushd cpp\build
-cmake -G "%GENERATOR%" ^
+cmake -G "%GENERATOR%" %CMAKE_ARGS% ^
-DCMAKE_INSTALL_PREFIX=%CONDA_PREFIX%\Library ^
-DARROW_BOOST_USE_SHARED=OFF ^
-DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
diff --git a/ci/travis_before_script_cpp.sh b/ci/travis_before_script_cpp.sh
index 1b389a21de..2da4c4b79d 100755
--- a/ci/travis_before_script_cpp.sh
+++ b/ci/travis_before_script_cpp.sh
@@ -52,6 +52,7 @@ if [ "$ARROW_TRAVIS_USE_TOOLCHAIN" == "1" ]; then
# Set up C++ toolchain from conda-forge packages for faster builds
source $TRAVIS_BUILD_DIR/ci/travis_install_toolchain.sh
CMAKE_COMMON_FLAGS="${CMAKE_COMMON_FLAGS} -DARROW_JEMALLOC=ON"
+ CMAKE_COMMON_FLAGS="${CMAKE_COMMON_FLAGS} -DARROW_WITH_BZ2=ON"
fi
mkdir -p $ARROW_CPP_BUILD_DIR
diff --git a/ci/travis_install_toolchain.sh b/ci/travis_install_toolchain.sh
index eb4bdf21d6..fa3b710f32 100755
--- a/ci/travis_install_toolchain.sh
+++ b/ci/travis_install_toolchain.sh
@@ -26,6 +26,7 @@ if [ ! -e $CPP_TOOLCHAIN ]; then
conda create -y -q -p $CPP_TOOLCHAIN python=3.6 nomkl \
boost-cpp \
brotli \
+ bzip2 \
ccache \
cmake \
curl \
diff --git a/ci/travis_lint.sh b/ci/travis_lint.sh
index b8059f07ae..4a4578fb9c 100755
--- a/ci/travis_lint.sh
+++ b/ci/travis_lint.sh
@@ -46,17 +46,17 @@ fi
if [ "$ARROW_CI_DEV_AFFECTED" != "0" ]; then
# crossbow requires python3
sudo apt-get install -y -q python3-pip
- sudo pip3 install -q flake8
+ sudo pip3 install -q flake8==3.5
python3 -m flake8 --count $ARROW_CROSSBOW_DIR
fi
if [ "$ARROW_CI_INTEGRATION_AFFECTED" != "0" ]; then
- sudo pip install -q flake8
+ sudo pip install -q flake8==3.5
python -m flake8 --count $ARROW_INTEGRATION_DIR
fi
if [ "$ARROW_CI_PYTHON_AFFECTED" != "0" ]; then
- sudo pip install -q flake8
+ sudo pip install -q flake8==3.5
python -m flake8 --count $ARROW_PYTHON_DIR