You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by uw...@apache.org on 2018/08/22 14:27:59 UTC

[arrow] branch master updated: ARROW-3109: [Python] Add Python 3.7 virtualenvs to manylinux1 container

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

uwe 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 4969da7  ARROW-3109: [Python] Add Python 3.7 virtualenvs to manylinux1 container
4969da7 is described below

commit 4969da7a629e94d059b875956dc4f041bddf6d20
Author: Korn, Uwe <Uw...@blue-yonder.com>
AuthorDate: Wed Aug 22 16:27:53 2018 +0200

    ARROW-3109: [Python] Add Python 3.7 virtualenvs to manylinux1 container
    
    Author: Korn, Uwe <Uw...@blue-yonder.com>
    
    Closes #2460 from xhochy/ARROW-3109 and squashes the following commits:
    
    cbd2a798 <Korn, Uwe> ARROW-3109:  Add Python 3.7 virtualenvs to manylinux1 container
---
 python/manylinux1/scripts/build_virtualenvs.sh | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/python/manylinux1/scripts/build_virtualenvs.sh b/python/manylinux1/scripts/build_virtualenvs.sh
index 7361ea0..f41a9f4 100755
--- a/python/manylinux1/scripts/build_virtualenvs.sh
+++ b/python/manylinux1/scripts/build_virtualenvs.sh
@@ -19,7 +19,7 @@
 # Build upon the scripts in https://github.com/matthew-brett/manylinux-builds
 # * Copyright (c) 2013-2016, Matt Terry and Matthew Brett (BSD 2-clause)
 
-PYTHON_VERSIONS="${PYTHON_VERSIONS:-2.7,16 2.7,32 3.5,16 3.6,16}"
+PYTHON_VERSIONS="${PYTHON_VERSIONS:-2.7,16 2.7,32 3.5,16 3.6,16, 3.7,16}"
 
 source /multibuild/manylinux_utils.sh
 
@@ -33,7 +33,11 @@ for PYTHON_TUPLE in ${PYTHON_VERSIONS}; do
     PATH="$PATH:$(cpython_path $PYTHON ${U_WIDTH})"
 
     echo "=== (${PYTHON}, ${U_WIDTH}) Installing build dependencies ==="
-    $PIP install "numpy==1.10.4"
+    if [ "${PYTHON}" = "3.7" ]; then
+        $PIP install "numpy==1.14.5"
+    else
+        $PIP install "numpy==1.10.4"
+    fi
     $PIP install "cython==0.28.1"
     $PIP install "pandas==0.23.4"
     $PIP install "virtualenv==15.1.0"
@@ -41,7 +45,7 @@ for PYTHON_TUPLE in ${PYTHON_VERSIONS}; do
     echo "=== (${PYTHON}, ${U_WIDTH}) Preparing virtualenv for tests ==="
     "$(cpython_path $PYTHON ${U_WIDTH})/bin/virtualenv" -p ${PYTHON_INTERPRETER} --no-download /venv-test-${PYTHON}-${U_WIDTH}
     source /venv-test-${PYTHON}-${U_WIDTH}/bin/activate
-    pip install pytest 'numpy==1.14.0' 'pandas==0.23.4'
+    pip install pytest 'numpy==1.14.5' 'pandas==0.23.4'
     deactivate
 done
 
@@ -49,8 +53,9 @@ done
 find /venv-test-*/lib/*/site-packages/pandas -name '*.so' -exec strip '{}' ';'
 find /venv-test-*/lib/*/site-packages/numpy -name '*.so' -exec strip '{}' ';'
 find /opt/_internal/cpython-*/lib/*/site-packages/pandas -name '*.so' -exec strip '{}' ';'
-# Only Python 3.6 packages are stripable as they are built inside of the image
+# Only Python 3.6+ packages are stripable as they are built inside of the image
 find /opt/_internal/cpython-3.6.*/lib/python3.6/site-packages/numpy -name '*.so' -exec strip '{}' ';'
+find /opt/_internal/cpython-3.7.*/lib/python3.7/site-packages/numpy -name '*.so' -exec strip '{}' ';'
 find /opt/_internal/*/lib/*/site-packages/Cython -name '*.so' -exec strip '{}' ';'
 
 # Remove pip cache again. It's useful during the virtualenv creation but we