How to create an RPM for Python 3.9 to use with CentOS 7
Create a Docker Container:
For convenience, we'll build the RPM inside a CentOS 7 docker container.
1. Create the CentOS 7 container:
docker run -dt --name centos7 centos:7 bash
2. Enter the container:
docker exec -it centos7 bash
Install and configure CCache:
Since compiling can take a while and …