Sorry for new thread.

I wanted to comment from below page. But I could not.
So, I joined koji-devel ML.

https://lists.fedoraproject.org/archives/list/koji-devel@lists.fedorahosted.org/thread/XLIR4DSXXRU3OYWXEZWJQJAEEIOUQEXY/?sort=date

> For some time now I use my own setup.py. I guess it is not ready for PR so > I'd love to see comments on this as well: > > https://pagure.io/fork/pbabinca/koji/blob/setup_WIP/f/setup.py

Try to add rpm-py-installer to the setup.py install_requires, that I developed recently because an another project had same kind of situation.
https://github.com/junaruga/rpm-py-installer

This installs the rpm python module from PyPI.

This has been used in a project rebase-helper.
https://github.com/rebase-helper/rebase-helper/blob/master/setup.py#L82

Jun