Files
Raúl Cumplido 934fa870a7 GH-50410: [Python][Packaging] Drop Python 3.10 support (#50411)
### Rationale for this change

Python 3.10 is End of Support on October 2026. We can drop support on PyArrow 26.0.0.
See: https://endoflife.date/python

### What changes are included in this PR?

Remove support for 3.10. Update minimum required Python version and update some CI jobs to use the minimum Python supported version.
Some CI jobs using default Python 3.10 (Ubuntu 20.04) have been bumped.

### Are these changes tested?

They will be tested via CI and Archery

### Are there any user-facing changes?

Yes in terms of not supporting older versions of Python. This will be a breaking change for some users but not for the API itself

* GitHub Issue: #50410

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
2026-07-09 12:33:32 +02:00
..

Minimal Python source build on Linux

This directory shows how to bootstrap a local build from source on Linux with an eye toward maximum portability across different Linux distributions. This may help for contributors debugging build issues caused by their local environments.

Fedora 35

First, build the Docker image using:

docker build -t arrow_fedora_minimal -f Dockerfile.fedora .

Then build PyArrow with conda or pip, respectively:

# With pip
docker run --rm -t -i -v $PWD:/io -v $PWD/../../..:/arrow arrow_fedora_minimal /io/build_venv.sh

# With conda
docker run --rm -t -i -v $PWD:/io -v $PWD/../../..:/arrow arrow_fedora_minimal /io/build_conda.sh

Alternatively you can use Docker Compose to build and run using:

docker compose build

# With conda
docker compose run --rm minimal-fedora-conda

# With pip
docker compose run --rm minimal-fedora-venv

Ubuntu 24.04

First, build the Docker image using:

docker build -t arrow_ubuntu_minimal -f Dockerfile.ubuntu .

Then build PyArrow with conda or pip, respectively:

# With pip
docker run --rm -t -i -v $PWD:/io -v $PWD/../../..:/arrow arrow_ubuntu_minimal /io/build_venv.sh

# With conda
docker run --rm -t -i -v $PWD:/io -v $PWD/../../..:/arrow arrow_ubuntu_minimal /io/build_conda.sh

Alternatively you can use Docker Compose to build and run using:

docker compose build

# With conda
docker compose run --rm minimal-ubuntu-conda

# With pip
docker compose run --rm minimal-ubuntu-venv

Building on Fedora - Podman and SELinux

In addition to using Podman instead of Docker, you need to specify :Z for SELinux relabelling when binding a volume.

First, build the image using:

podman build -t arrow_fedora_minimal -f Dockerfile.fedora

Then build PyArrow with pip:

# With pip
podman run --rm -i -v $PWD:/io:Z -v $PWD/../../..:/arrow:Z -t arrow_fedora_minimal /io/build_venv.sh