Created attachment 365924 [details] Force optimization (-O1) when building +++ This bug was cloned for RHEL 5 from Fedora Bug #236535 +++ When using distutils to build a Python module into an RPM, by calling from the module's source directory python setup.py bdist_rpm the procedure will fail before writing the RPM, with error: Installed (but unpackaged) file(s) found followed by a list of the *.pyo files that are compiled during the build process. This has been fixed upstream in Python (http://bugs.python.org/issue1533164) by forcing optimization during the build (-O1). I've attached the needed patch for RHEL 5, which makes the same simple change as upstream. I verified that this resolved the error and allowed RPMs to be built successfully.
What is the status of this bug? Will the fix be included in 5.6?
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux.
Due to non-critical nature of this bug, the engineering will not address it in the current lifecycle stage of RHEL 5. Feel free to reopen if it keeps causing problems.