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
- Host: GitHub
- URL: https://github.com/winand/python-centos7-docker-build
- Owner: Winand
- Created: 2023-11-02T06:33:17.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-17T14:05:11.000Z (over 1 year ago)
- Last Synced: 2025-01-31T06:37:34.748Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)