Skip to content

Commit 9b3bf08

Browse files
authored
GH-36752: [Python] Remove AWS SDK bundling when building wheels (#36925)
### Rationale for this change In #12227 we decided to use a bundled version of the AWS SDK when compiling Python wheels, in order to downgrade the AWS SDK version. Now that we have fixed S3 finalization issues (#36442), it should be ok to rely on the vcpkg-installed version of the AWS SDK again. ### What changes are included in this PR? Remove use of bundled AWS SDK and use S3 vcpkg feature for requirements. ### Are these changes tested? On CI and via crossbow ### Are there any user-facing changes? No * Closes: #36752 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
1 parent 4b70fd4 commit 9b3bf08

6 files changed

Lines changed: 5 additions & 12 deletions

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ VCPKG="501db0f17ef6df184fcdbfbe0f87cde2313b6ab1" # 2023.04.15 Release
9898
# ci/docker/python-wheel-windows-vs2017.dockerfile.
9999
# This is a workaround for our CI problem that "archery docker build" doesn't
100100
# use pulled built images in dev/tasks/python-wheels/github.windows.yml.
101-
PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2022-06-12
101+
PYTHON_WHEEL_WINDOWS_IMAGE_REVISION=2023-08-02
102102

103103
# Use conanio/${CONAN} for "docker-compose run --rm conan". See
104104
# https://github.com/conan-io/conan-docker-tools#readme for available

ci/docker/python-wheel-manylinux.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ RUN vcpkg install \
8484
--x-feature=flight \
8585
--x-feature=gcs \
8686
--x-feature=json \
87-
--x-feature=parquet
87+
--x-feature=parquet \
88+
--x-feature=s3
8889

8990
# Configure Python for applications running in the bash shell of this Dockerfile
9091
ARG python=3.8

ci/docker/python-wheel-windows-vs2017.dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ RUN vcpkg install \
6666
--x-feature=flight \
6767
--x-feature=gcs \
6868
--x-feature=json \
69-
--x-feature=parquet
69+
--x-feature=parquet \
70+
--x-feature=s3
7071

7172
# Remove previous installations of python from the base image
7273
# NOTE: a more recent base image (tried with 2.12.1) comes with python 3.9.7

ci/scripts/java_jni_macos_build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ cmake \
8181
-DARROW_PARQUET=${ARROW_PARQUET} \
8282
-DARROW_S3=${ARROW_S3} \
8383
-DARROW_USE_CCACHE=${ARROW_USE_CCACHE} \
84-
-DAWSSDK_SOURCE=BUNDLED \
8584
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
8685
-DCMAKE_INSTALL_LIBDIR=lib \
8786
-DCMAKE_INSTALL_PREFIX=${install_dir} \

ci/scripts/python_wheel_manylinux_build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ fi
8585
mkdir /tmp/arrow-build
8686
pushd /tmp/arrow-build
8787

88-
# ARROW-17501: We can remove -DAWSSDK_SOURCE=BUNDLED once
89-
# https://github.com/aws/aws-sdk-cpp/issues/1809 is fixed and vcpkg
90-
# ships the fix.
9188
cmake \
9289
-DARROW_ACERO=${ARROW_ACERO} \
9390
-DARROW_BUILD_SHARED=ON \
@@ -120,7 +117,6 @@ cmake \
120117
-DARROW_WITH_SNAPPY=${ARROW_WITH_SNAPPY} \
121118
-DARROW_WITH_ZLIB=${ARROW_WITH_ZLIB} \
122119
-DARROW_WITH_ZSTD=${ARROW_WITH_ZSTD} \
123-
-DAWSSDK_SOURCE=BUNDLED \
124120
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
125121
-DCMAKE_INSTALL_LIBDIR=lib \
126122
-DCMAKE_INSTALL_PREFIX=/tmp/arrow-dist \

ci/scripts/python_wheel_windows_build.bat

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ set ARROW_WITH_LZ4=ON
4949
set ARROW_WITH_SNAPPY=ON
5050
set ARROW_WITH_ZLIB=ON
5151
set ARROW_WITH_ZSTD=ON
52-
@rem Workaround for https://github.com/aws/aws-sdk-cpp/issues/1809 .
53-
@rem Use (old) bundled AWS SDK C++ instead of (newer) AWS SDK C++.
54-
set AWSSDK_SOURCE=BUNDLED
5552
set CMAKE_UNITY_BUILD=ON
5653
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
5754
set VCPKG_ROOT=C:\vcpkg
@@ -90,7 +87,6 @@ cmake ^
9087
-DARROW_WITH_SNAPPY=%ARROW_WITH_SNAPPY% ^
9188
-DARROW_WITH_ZLIB=%ARROW_WITH_ZLIB% ^
9289
-DARROW_WITH_ZSTD=%ARROW_WITH_ZSTD% ^
93-
-DAWSSDK_SOURCE=%AWSSDK_SOURCE% ^
9490
-DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ^
9591
-DCMAKE_CXX_COMPILER=clcache ^
9692
-DCMAKE_INSTALL_PREFIX=C:\arrow-dist ^

0 commit comments

Comments
 (0)