Description of problem: File '/opt/rh/python27/root/usr/share/doc/python27-PyYAML-3.10/examples/yaml-highlight/yaml_hl.py' has wrong interpreter '#!/usr/bin/python' Version-Release number of selected component (if applicable): python27-PyYAML-3.10-13.el6 python27-PyYAML-3.10-13.el7 Additional info: "env python" should be used to use collection python instead of system python.
This file becomes non-executable during the prep section in the SPEC file (chmod a-x examples/yaml-highlight/yaml_hl.py) however for consistency I will remove the shebang.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2016:1166