Apache DataFusion SQL Query Engine
ARROW-7852: [Python] 0.16.0 wheels not compatible with older numpy
Krisztián Szűcs8d18e568aa49
diff --git a/.github/workflows/python.yml b/.github/workflows/python.ymlindex c8fa9bde2f..37a4f64996 100644--- a/.github/workflows/python.yml+++ b/.github/workflows/python.yml@@ -184,9 +184,8 @@ jobs:run: |brew bundle --file=cpp/Brewfilebrew install coreutils python- pip3 install -r python/requirements.txt \- -r python/requirements-test.txt \- cython+ pip3 install -r python/requirements-build.txt \+ -r python/requirements-test.txt- name: Buildshell: bashrun: |diff --git a/ci/docker/linux-apt-python-3.dockerfile b/ci/docker/linux-apt-python-3.dockerfileindex dc019d3743..032d69c5d8 100644--- a/ci/docker/linux-apt-python-3.dockerfile+++ b/ci/docker/linux-apt-python-3.dockerfile@@ -29,12 +29,12 @@ RUN apt-get update -y -q && \RUN ln -s /usr/bin/python3 /usr/local/bin/python && \ln -s /usr/bin/pip3 /usr/local/bin/pip-COPY python/requirements.txt \+COPY python/requirements-build.txt \python/requirements-test.txt \/arrow/python/RUN pip install \- -r arrow/python/requirements.txt \+ -r arrow/python/requirements-build.txt \-r arrow/python/requirements-test.txt \setuptoolsdiff --git a/ci/docker/linux-apt-r.dockerfile b/ci/docker/linux-apt-r.dockerfileindex bc3b355eb9..8b6287a50e 100644--- a/ci/docker/linux-apt-r.dockerfile+++ b/ci/docker/linux-apt-r.dockerfile@@ -71,14 +71,8 @@ RUN /arrow/ci/scripts/r_deps.sh /arrowRUN 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+COPY python/requirements-build.txt /arrow/python/+RUN pip install -r arrow/python/requirements-build.txtENV \ARROW_BUILD_STATIC=OFF \diff --git a/ci/docker/linux-dnf-python-3.dockerfile b/ci/docker/linux-dnf-python-3.dockerfileindex 75b2130147..8c3c5c7013 100644--- a/ci/docker/linux-dnf-python-3.dockerfile+++ b/ci/docker/linux-dnf-python-3.dockerfile@@ -26,12 +26,12 @@ RUN dnf install -y \RUN ln -s /usr/bin/python3 /usr/local/bin/python && \ln -s /usr/bin/pip3 /usr/local/bin/pip-COPY python/requirements.txt \+COPY python/requirements-build.txt \python/requirements-test.txt \/arrow/python/RUN pip install \- -r arrow/python/requirements.txt \+ -r arrow/python/requirements-build.txt \-r arrow/python/requirements-test.txtENV ARROW_PYTHON=ON \diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txtindex 6779db07db..786deefd95 100644--- a/dev/release/rat_exclude_files.txt+++ b/dev/release/rat_exclude_files.txt@@ -168,10 +168,7 @@ python/MANIFEST.inpython/manylinux1/.dockerignorepython/pyarrow/includes/__init__.pxdpython/pyarrow/tests/__init__.py-python/requirements.txt-python/requirements-test.txt-python/requirements-wheel.txt-python/requirements-build.txt+python/requirements*.txtpax_global_headerMANIFEST.in__init__.pxddiff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex 181738865e..f796a19dd9 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -363,7 +363,7 @@ test_csharp() {test_python() {pushd python- pip install -r requirements.txt -r requirements-test.txt+ pip install -r requirements-build.txt -r requirements-test.txtexport PYARROW_WITH_DATASET=1export PYARROW_WITH_GANDIVA=1diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.ymlindex 3cc27f7593..eca2ba5612 100644--- a/dev/tasks/python-wheels/appveyor.yml+++ b/dev/tasks/python-wheels/appveyor.yml@@ -20,7 +20,6 @@ os: Visual Studio 2015environment:ARCH: "64"GENERATOR: Visual Studio 14 2015 Win64- NUMPY_VERSION: "1.14"PYTHON_VERSION: "{{ python_version }}"ARROW_SRC: C:\apache-arrowPYARROW_VERSION: {{ arrow.no_rc_version }}diff --git a/dev/tasks/python-wheels/manylinux-test.sh b/dev/tasks/python-wheels/manylinux-test.shindex c4b36e658a..bd751df7b4 100755--- a/dev/tasks/python-wheels/manylinux-test.sh+++ b/dev/tasks/python-wheels/manylinux-test.sh@@ -25,7 +25,7 @@ python --version# Install built wheelpip install -q /arrow/python/$WHEEL_DIR/dist/*.whl# Install test dependencies (pip won't work after removing system zlib)-pip install -q -r /arrow/python/requirements-test.txt+pip install -q -r /arrow/python/requirements-wheel-test.txt# Run pyarrow testspytest -rs --pyargs pyarrowdiff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.shindex c29fc8eb64..aea4c62e00 100755--- a/dev/tasks/python-wheels/osx-build.sh+++ b/dev/tasks/python-wheels/osx-build.sh@@ -50,7 +50,7 @@ function build_wheel {export ARROW_HOME=`pwd`/arrow-distexport PARQUET_HOME=`pwd`/arrow-dist- pip install $(pip_opts) -r python/requirements-wheel.txt cython+ pip install $(pip_opts) -r python/requirements-wheel-build.txtexport PYARROW_WITH_GANDIVA=1export BUILD_ARROW_GANDIVA=ON@@ -138,7 +138,7 @@ function run_unit_tests {pushd $1# Install test dependencies- pip install $(pip_opts) -r python/requirements-test.txt+ pip install $(pip_opts) -r python/requirements-wheel-test.txt# Run pyarrow testspytest -rs --pyargs pyarrowdiff --git a/dev/tasks/python-wheels/win-build-3.5.bat b/dev/tasks/python-wheels/win-build-3.5.batindex 25e6780dba..556cd29f7d 100644--- a/dev/tasks/python-wheels/win-build-3.5.bat+++ b/dev/tasks/python-wheels/win-build-3.5.bat@@ -28,7 +28,7 @@ call conda.bat activate wheel-build@rem Cannot use conda_env_python.yml here because conda-forge has@rem ceased providing up-to-date packages for Python 3.5-pip install -r %ARROW_SRC%\python\requirements-wheel.txt+pip install -r %ARROW_SRC%\python\requirements-wheel-build.txtset ARROW_HOME=%CONDA_PREFIX%\Libraryset PARQUET_HOME=%CONDA_PREFIX%\Library@@ -79,6 +79,7 @@ call conda.bat activate wheel-test@rem install the built wheelpip install -vv %ARROW_SRC%\python\dist\pyarrow-%PYARROW_VERSION%-cp35-cp35m-win_amd64.whl || exit /B+pip install -q -r %ARROW_SRC%\python\requirements-wheel-test.txt || exit /B@rem test the importspython -c "import pyarrow; import pyarrow.parquet" || exit /Bdiff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.batindex 8247a5a3aa..43706b4371 100644--- a/dev/tasks/python-wheels/win-build.bat+++ b/dev/tasks/python-wheels/win-build.bat@@ -23,15 +23,13 @@ conda update --yes --quiet condaconda create -n wheel-build -q -y -c conda-forge ^--file=%ARROW_SRC%\ci\conda_env_cpp.yml ^--file=%ARROW_SRC%\ci\conda_env_gandiva.yml ^- python=%PYTHON_VERSION% ^- numpy=%NUMPY_VERSION% ^- || exit /B+ python=%PYTHON_VERSION% || exit /Bcall conda.bat activate wheel-build@rem Cannot use conda_env_python.yml here because conda-forge has@rem ceased providing up-to-date packages for Python 3.5-pip install -r %ARROW_SRC%\python\requirements-wheel.txt+pip install -r %ARROW_SRC%\python\requirements-wheel-build.txtset ARROW_HOME=%CONDA_PREFIX%\Libraryset PARQUET_HOME=%CONDA_PREFIX%\Library@@ -90,14 +88,12 @@ set ARROW_TEST_DATA=%ARROW_SRC%\testing\data@rem test the wheel@rem TODO For maximum reliability, we should test in a plain virtualenv instead.-conda create -n wheel-test -c conda-forge -q -y ^- --file %ARROW_SRC%\ci\conda_env_python.yml ^- python=%PYTHON_VERSION% ^- numpy=%NUMPY_VERSION% || exit /B+conda create -n wheel-test -c conda-forge -q -y python=%PYTHON_VERSION% || exit /Bcall conda.bat activate wheel-test@rem install the built wheelpip install -vv --no-index --find-links=%ARROW_SRC%\python\dist\ pyarrow || exit /B+pip install -q -r %ARROW_SRC%\python\requirements-wheel-test.txt || exit /B@rem test the importspython -c "import pyarrow; import pyarrow.parquet; import pyarrow.flight; import pyarrow.dataset; import pyarrow.gandiva;" || exit /B