Skip to content

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.yml
index c8fa9bde2f..37a4f64996 100644
--- a/.github/workflows/python.yml
+++ b/.github/workflows/python.yml
@@ -184,9 +184,8 @@ jobs:
run: |
brew bundle --file=cpp/Brewfile
brew 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: Build
shell: bash
run: |
diff --git a/ci/docker/linux-apt-python-3.dockerfile b/ci/docker/linux-apt-python-3.dockerfile
index 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 \
setuptools
diff --git a/ci/docker/linux-apt-r.dockerfile b/ci/docker/linux-apt-r.dockerfile
index 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 /arrow
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
+COPY python/requirements-build.txt /arrow/python/
+RUN pip install -r arrow/python/requirements-build.txt
ENV \
ARROW_BUILD_STATIC=OFF \
diff --git a/ci/docker/linux-dnf-python-3.dockerfile b/ci/docker/linux-dnf-python-3.dockerfile
index 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.txt
ENV ARROW_PYTHON=ON \
diff --git a/dev/release/rat_exclude_files.txt b/dev/release/rat_exclude_files.txt
index 6779db07db..786deefd95 100644
--- a/dev/release/rat_exclude_files.txt
+++ b/dev/release/rat_exclude_files.txt
@@ -168,10 +168,7 @@ python/MANIFEST.in
python/manylinux1/.dockerignore
python/pyarrow/includes/__init__.pxd
python/pyarrow/tests/__init__.py
-python/requirements.txt
-python/requirements-test.txt
-python/requirements-wheel.txt
-python/requirements-build.txt
+python/requirements*.txt
pax_global_header
MANIFEST.in
__init__.pxd
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 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.txt
export PYARROW_WITH_DATASET=1
export PYARROW_WITH_GANDIVA=1
diff --git a/dev/tasks/python-wheels/appveyor.yml b/dev/tasks/python-wheels/appveyor.yml
index 3cc27f7593..eca2ba5612 100644
--- a/dev/tasks/python-wheels/appveyor.yml
+++ b/dev/tasks/python-wheels/appveyor.yml
@@ -20,7 +20,6 @@ os: Visual Studio 2015
environment:
ARCH: "64"
GENERATOR: Visual Studio 14 2015 Win64
- NUMPY_VERSION: "1.14"
PYTHON_VERSION: "{{ python_version }}"
ARROW_SRC: C:\apache-arrow
PYARROW_VERSION: {{ arrow.no_rc_version }}
diff --git a/dev/tasks/python-wheels/manylinux-test.sh b/dev/tasks/python-wheels/manylinux-test.sh
index 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 wheel
pip 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 tests
pytest -rs --pyargs pyarrow
diff --git a/dev/tasks/python-wheels/osx-build.sh b/dev/tasks/python-wheels/osx-build.sh
index 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-dist
export PARQUET_HOME=`pwd`/arrow-dist
- pip install $(pip_opts) -r python/requirements-wheel.txt cython
+ pip install $(pip_opts) -r python/requirements-wheel-build.txt
export PYARROW_WITH_GANDIVA=1
export 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 tests
pytest -rs --pyargs pyarrow
diff --git a/dev/tasks/python-wheels/win-build-3.5.bat b/dev/tasks/python-wheels/win-build-3.5.bat
index 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.txt
set ARROW_HOME=%CONDA_PREFIX%\Library
set PARQUET_HOME=%CONDA_PREFIX%\Library
@@ -79,6 +79,7 @@ call conda.bat activate wheel-test
@rem install the built wheel
pip 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 imports
python -c "import pyarrow; import pyarrow.parquet" || exit /B
diff --git a/dev/tasks/python-wheels/win-build.bat b/dev/tasks/python-wheels/win-build.bat
index 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 conda
conda 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 /B
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.txt
set ARROW_HOME=%CONDA_PREFIX%\Library
set 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 /B
call conda.bat activate wheel-test
@rem install the built wheel
pip 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 imports
python -c "import pyarrow; import pyarrow.parquet; import pyarrow.flight; import pyarrow.dataset; import pyarrow.gandiva;" || exit /B