An open API service indexing awesome lists of open source software.

https://github.com/winand/python-centos7-docker-build

Builds Python with OpenSSL for CentOS 7
https://github.com/winand/python-centos7-docker-build

Last synced: 7 months ago
JSON representation

Builds Python with OpenSSL for CentOS 7

Awesome Lists containing this project

README

          

# Build Python for CentOS 7 in Docker container
Run `docker-compose.yml` to build Python for CentOS 7.

Options are set in `.env`:
- `PYTHON_VERSION` - Python version to build (e. g. `3.12.0`)
- `OPENSSL_VERSION` - OpenSSL version to build (`1.1.1w` by default)
- `INSTALL_PATH` - Python and OpenSSL install path (e. g. `/home/user/.local`)
- `NO_GIL=1` - disables GIL for CPython 3.13+ if defined
- `SQLITE_VERSION` - build custom SQLite version (CPython 3.13 requires 3.15.2+)

Note: `tkinter` module is not built, `turtle` and `idle` modules are removed.

# Check installation
If Python is built with `INSTALL_PATH="/home/user/.local"`:
```
docker run --rm -it -v "$(pwd)/output:/dat" centos:7
mkdir -p /home
useradd user -d /home/user
su - user
cd /dat
tar xzf python_3.12.11_centos7_ssl3.3.2.tar.gz -C /
python3.12
```

# Links
- [#121992 Using custom OpenSSL version 3.x <...>](https://github.com/python/cpython/issues/121992)
- [#87632 --with-openssl-rpath](https://github.com/python/cpython/issues/87632)
- [Free-threaded CPython](https://docs.python.org/3.13/whatsnew/3.13.html#free-threaded-cpython)