﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
13505	Rewrite python shebangs during 'make install' step	rcrdnalor	Bill Meek	"This patch is a follow up to ticket #13504: 
Feature patch - clean up (dead) QMAKE_COPY_DIR code

As outlined in #13504, we need to set the python shebangs
according to the configured python version for each installation.

Python's PEP 394 already defines the usage of shebangs in
respect of the configured python version:

On recent linux distributions, the shebang 
`#!/usr/bin/env python` may not exist anymore and
package install scripts already warn about 
'ambiguous python shebang' during packaging.

This patch rewrites the shebang of python scripts during the
'make install' step of mythtv's 'metadata' scripts located in 
'mythtv/programs/scripts' according the given python version.
It ignores scripts that are set intentionally to python2.

It can be easily expanded to other folders like 
'hardwareprofile' or 'internetcontent'.

Please note: This script looks like somehow 'quick and dirty',
but i tried other solutions like creating an 'intermediate target'
for the python scripts, and they are much more complicated than
this one, albeit, I don't speak QMAKE well."	Patch - Feature	closed	minor	31.0	Bindings - Python	Master Head	medium	fixed	python shebang		0
