Because I have to install multiple versions of Python on multiple Oracle Linux servers which are built via a kickstart process, I wanted to build a python rpm for our yum reposi
You should be able to fix this issue by adding the following line to your spec file:
AutoReq: no
Here is my understanding of why this is necessary. When rpmbuild runs across .py files with a #! (shebang) it will automatically add the binary that the shebang specifies as a requirement. Not only that, if the shebang is #!/usr/bin/env python
, it will add a dependency for whatever that resolves to (first python on $PATH
).
You either need to turn off the automatic requirement processing or find all shebangs that will cause problems and change them to something else.