chore(lambda-layer): bump pyarrow to 24.0.0 - #3375
Merged
Merged
Conversation
…rop py3.9)
PyArrow 24 dropped setup.py and moved to pyproject.toml + scikit-build-core.
The legacy `setup.py build_ext --bundle-arrow-cpp bdist_wheel` invocation
fails because arrow/python/setup.py no longer exists.
- Use `python -m build --wheel --no-isolation` and export
PYARROW_BUNDLE_ARROW_CPP=ON (replaces the --bundle-arrow-cpp flag).
- Drop the PYARROW_WITH_{PLASMA,CSV,JSON,COMPUTE,FILESYSTEM} and
ARROW_PRE_0_15_IPC_FORMAT exports — pyarrow 24's CMakeLists no longer
defines those options.
- Install build deps (build, scikit-build-core, libcst>=1.8.6) and pin
cython>=3.1 in both Dockerfiles.
- Drop the Python 3.9 layer build: pyarrow 24 requires Python >= 3.10.
libcst >=1.8 only ships aarch64 wheels for manylinux_2_28+. On Amazon Linux 2 (glibc 2.26) pip falls back to building from source, which now needs cargo (libcst is partly Rust). Install rustup with the minimal profile so the source build can proceed. AL2023 (used for py3.12+) ships glibc 2.34 and uses the prebuilt wheel, so Dockerfile.al2023 is unaffected.
cargo invokes `cc` as the default linker. The AL2 image only symlinked `gcc` from `gcc10-gcc`, so libcst's Rust build (from previous commit) failed with `linker `cc` not found`.
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Detail
pyarrow, but vulnerability scanners such as Trivy still generate an alert.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.