Python Module RPM¶ Generating python module rpm is easy. Please see the Python 3 and Python 2 Steps¶ Download source Extract Run command as provided in the manual. python setup.py bdist_rpm This will create RPM in dist folder.