def METHOD_NAME(mep):
    builder = mep.builder_class(mep.get_enrollment(), version=mep.version)
    _, _, package_content = builder.build()
    mep.pkg_info = make_package_info(builder, mep, package_content)
    mep.file.delete(False)
    mep.file.save(mep.get_installer_item_filename(),
                  ContentFile(package_content),
                  save=True)