You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2018/12/09 17:30:28 UTC

[arrow] branch master updated: ARROW-3940: [Python/Documentation] Add required packages to the development instruction

This is an automated email from the ASF dual-hosted git repository.

wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 5704d8d  ARROW-3940: [Python/Documentation] Add required packages to the development instruction
5704d8d is described below

commit 5704d8d644154f21597125d14d20c9e9ae4379d0
Author: Kengo Seki <se...@apache.org>
AuthorDate: Sun Dec 9 11:30:20 2018 -0600

    ARROW-3940: [Python/Documentation] Add required packages to the development instruction
    
    I mistakenly closed #3102 so I'll submit the revised PR. @wesm would you take a look at this?
    
    Author: Kengo Seki <se...@apache.org>
    
    Closes #3126 from sekikn/ARROW-3940-2 and squashes the following commits:
    
    15e369eb0 <Kengo Seki> ARROW-3940:  Add required packages to the development instruction
---
 docs/source/python/development.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/docs/source/python/development.rst b/docs/source/python/development.rst
index e86a0be..4258fee 100644
--- a/docs/source/python/development.rst
+++ b/docs/source/python/development.rst
@@ -125,9 +125,13 @@ dependencies will be automatically built by Arrow's third-party toolchain.
                           libboost-filesystem-dev \
                           libboost-system-dev \
                           libboost-regex-dev \
+                          python-dev \
+                          autoconf \
                           flex \
                           bison
 
+If you are building Arrow for Python 3, install ``python3-dev`` instead of ``python-dev``.
+
 On Arch Linux, you can get these dependencies via pacman.
 
 .. code-block:: shell
@@ -185,6 +189,12 @@ Now build and install the Arrow C++ libraries:
 
 If you don't want to build and install the Plasma in-memory object store,
 you can omit the ``-DARROW_PLASMA=on`` flag.
+Also, if multiple versions of Python are installed in your environment,
+you may have to pass additional parameters to cmake so that
+it can find the right executable, headers and libraries.
+For example, specifying `-DPYTHON_EXECUTABLE=$VIRTUAL_ENV/bin/python`
+(assuming that you're in virtualenv) enables cmake to choose
+the python executable which you are using.
 
 .. note::
 
@@ -227,6 +237,7 @@ libraries), one can set ``--bundle-arrow-cpp``:
 
 .. code-block:: shell
 
+   pip install wheel  # if not installed
    python setup.py build_ext --build-type=$ARROW_BUILD_TYPE \
           --with-parquet --with-plasma --bundle-arrow-cpp bdist_wheel