Skip to content

Apache DataFusion SQL Query Engine

ARROW-7913: [C++][Python][R] C++ implementation of C data interface

Antoine Pitroub9578db82cd1
diff --git a/ci/conda_env_python.yml b/ci/conda_env_python.yml
index c76c370e21..480c1d5979 100644
--- a/ci/conda_env_python.yml
+++ b/ci/conda_env_python.yml
@@ -16,6 +16,7 @@
# under the License.
# don't add pandas here, because it is not a mandatory test dependency
+cffi
cython
cloudpickle
hypothesis
diff --git a/ci/conda_env_r.yml b/ci/conda_env_r.yml
index f7f76126cd..8cecbe5752 100644
--- a/ci/conda_env_r.yml
+++ b/ci/conda_env_r.yml
@@ -32,6 +32,7 @@ r-covr
r-hms
r-lubridate
r-rcmdcheck
+r-reticulate
r-rmarkdown
r-testthat
r-tibble
diff --git a/ci/cpp-msvc-build-main.bat b/ci/cpp-msvc-build-main.bat
index 5094379c50..c2d55d23da 100644
--- a/ci/cpp-msvc-build-main.bat
+++ b/ci/cpp-msvc-build-main.bat
@@ -103,7 +103,7 @@ popd
pushd python
-pip install -r requirements.txt pickle5
+pip install -r requirements.txt
set PYARROW_CXXFLAGS=%ARROW_CXXFLAGS%
set PYARROW_CMAKE_GENERATOR=%GENERATOR%
diff --git a/ci/docker/conda-r.dockerfile b/ci/docker/conda-r.dockerfile
index b3749b912a..ad8e59fb2a 100644
--- a/ci/docker/conda-r.dockerfile
+++ b/ci/docker/conda-r.dockerfile
@@ -48,5 +48,6 @@ ENV ARROW_BUILD_STATIC=OFF \
ARROW_ORC=OFF \
ARROW_PARQUET=ON \
ARROW_PLASMA=OFF \
+ ARROW_USE_CCACHE=ON \
ARROW_USE_GLOG=OFF \
LC_ALL=en_US.UTF-8
diff --git a/ci/docker/linux-apt-r.dockerfile b/ci/docker/linux-apt-r.dockerfile
index 100a1f4c01..bc3b355eb9 100644
--- a/ci/docker/linux-apt-r.dockerfile
+++ b/ci/docker/linux-apt-r.dockerfile
@@ -47,7 +47,11 @@ RUN apt-get update -y && \
# R CMD CHECK --as-cran needs pdflatex to build the package manual
texlive-latex-base \
# Need locales so we can set UTF-8
- locales && \
+ locales \
+ # Need Python to check py-to-r bridge
+ python3 \
+ python3-pip \
+ python3-dev && \
locale-gen en_US.UTF-8 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
@@ -63,6 +67,19 @@ COPY ci/scripts/r_deps.sh /arrow/ci/scripts/
COPY r/DESCRIPTION /arrow/r/
RUN /arrow/ci/scripts/r_deps.sh /arrow
+# Set up Python 3 and its dependencies
+RUN ln -s /usr/bin/python3 /usr/local/bin/python && \
+ ln -s /usr/bin/pip3 /usr/local/bin/pip
+
+COPY python/requirements.txt \
+ python/requirements-test.txt \
+ /arrow/python/
+
+RUN pip install \
+ -r arrow/python/requirements.txt \
+ cython \
+ setuptools
+
ENV \
ARROW_BUILD_STATIC=OFF \
ARROW_BUILD_TESTS=OFF \
@@ -74,5 +91,7 @@ ENV \
ARROW_ORC=OFF \
ARROW_PARQUET=ON \
ARROW_PLASMA=OFF \
+ ARROW_PYTHON=ON \
+ ARROW_USE_CCACHE=ON \
ARROW_USE_GLOG=OFF \
LC_ALL=en_US.UTF-8
diff --git a/docker-compose.yml b/docker-compose.yml
index 54271de3d3..6f32a258bc 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -767,6 +767,7 @@ services:
command: >
/bin/bash -c "
/arrow/ci/scripts/cpp_build.sh /arrow /build &&
+ /arrow/ci/scripts/python_build.sh /arrow /build &&
/arrow/ci/scripts/r_test.sh /arrow"
r: