Copying Python built from source from one machine to another

42 Views Asked by At

I built a fresh version of Python 3.11 one one machine (RHEL7) and I want to copy this instance to a fleet VMs. Is there a way to copy all of the required dependencies from the machine to another?

Does Python provide a script to building a rpm perhaps?

1

There are 1 best solutions below

0
JavaHead On

I figured it out, I was building with the --prefix flag which was building an executable that was looking for dependencies in a hardcoded folder. I rebuilt without the prefix, and all the files that I needed were in /usr/local