"There'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, rhpl in RHEL5 has at least one instance of a python script containing #!/usr/bin/env python"
Which python script are you referring to? As you can see... clumens@localhost:~/src/rhpl$ git status # On branch rhel5-branch nothing to commit (working directory clean) clumens@localhost:~/src/rhpl$ grep -r 'usr/bin/env' * clumens@localhost:~/src/rhpl$
We were trying to do a sweep of packages that had any files that contained #!/usr/bin/env python via: #!/bin/bash if file $1 | grep "a python script text executable" >/dev/null;then if head -1 $1 | grep env >/dev/null;then exit 0 fi else exit 1 fi Then we ran: find / -type f -exec /root/python_search.sh '{}' \; -exec rpm -qf '{}' \; ...I'm not sure (yet) how rhpl got pulled into the list.