This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new cb7b46e chore: Set upper pin on Cython on centos7 (#268)
cb7b46e is described below
commit cb7b46ec41d9bb4a5c1b663b93e45907477f28c4
Author: Dewey Dunnington <[email protected]>
AuthorDate: Mon Jul 24 10:17:30 2023 -0300
chore: Set upper pin on Cython on centos7 (#268)
On Centos7/arm64, building numpy from source is required; however, the
build fails with Cython 3. This PR sets an upper pin on the Cython
version specifically on centos7.
---
ci/docker/centos7.dockerfile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ci/docker/centos7.dockerfile b/ci/docker/centos7.dockerfile
index b76f56e..4ce8487 100644
--- a/ci/docker/centos7.dockerfile
+++ b/ci/docker/centos7.dockerfile
@@ -21,7 +21,8 @@ FROM --platform=linux/${NANOARROW_ARCH} centos:7
RUN yum install -y epel-release
RUN yum install -y git gnupg curl R gcc-c++ cmake3 python3-devel
-RUN pip3 install build Cython numpy pytest
+# On centos7/arm64, cythonize/build is required and fails with cython >= 3
+RUN pip3 install build "Cython < 3.0.0" numpy pytest
RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
ENV LC_ALL en_US.UTF-8