def install_rpm_py ( ) : python_path = sys . executable cmd = '{0} install.py' . format ( python_path ) exit_status = os . system ( cmd ) if exit_status != 0 : raise Exception ( 'Command failed: {0}' . format ( cmd ) )
build rpm with python
Install RPM Python binding .
def install_rpm_py():
    """Install RPM Python binding."""
    python_path = sys.executable
    cmd = '{0} install.py'.format(python_path)
    exit_status = os.system(cmd)
    if exit_status != 0:
        raise Exception('Command failed: {0}'.format(cmd))