here's a project underway in Fedora 12 to finally resolve the issues with Red Hat including #!/usr/bin/env python in our python executables: https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython There's also a Fedora bug opened on this, and comments in there state that this is a big priority for RHEL6: https://bugzilla.redhat.com/show_bug.cgi?id=518994 For RHEL5, we've been instructed by Product Management to open bugs on a package-by-package basis to address the problem. In this case, python-imaging-devel in RHEL5 has at least one instance of a python script containing #!/usr/bin/env python
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.
Fixed in python-imaging-1.1.5-7.el5
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: The shebang lines in Python executables have been changed to "#!/usr/bin/python" to ensure the Python interpreter installed in the system is used.
The only files containing "/usr/bin/env python" that I found are from the python-imaging-devel package: # rpm -ql python-imaging-devel | xargs grep "/usr/bin/env" /usr/share/doc/python-imaging-devel-1.1.5/Sane/demo_numarray.py:#!/usr/bin/env python /usr/share/doc/python-imaging-devel-1.1.5/Sane/demo_pil.py:#!/usr/bin/env python /usr/share/doc/python-imaging-devel-1.1.5/Scripts/pildriver.py:#!/usr/bin/env python With python-imaging-devel-1.1.5-7.el5: # rpm -ql python-imaging-devel | xargs grep "/usr/bin/env" Moving to VERIFIED.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0205.html