[mythtv-commits] Ticket #13505: Rewrite python shebangs during 'make install' step

MythTV noreply at mythtv.org
Mon Nov 11 23:31:03 UTC 2019


#13505: Rewrite python shebangs during 'make install' step
-------------------------------+--------------------------------
 Reporter:  rcrdnalor          |          Owner:  Raymond Wagner
     Type:  Patch - Feature    |         Status:  new
 Priority:  minor              |      Milestone:  needs_triage
Component:  Bindings - Python  |        Version:  Master Head
 Severity:  medium             |     Resolution:
 Keywords:  python shebang     |  Ticket locked:  0
-------------------------------+--------------------------------

Comment (by Gary Buhrmaster):

 Replying to [ticket:13505 rcrdnalor]:

 > 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.

 I will note that some packaging systems (Fedora) have a tool included that
 recursively fixes python shebangs called pathfix.py which implements
 something similar, but almost certainly slightly different.  It might be
 worth reviewing how it does its work to see how/if it can be utilized.
 Docs are at:
 https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error#Using_pathfix.py_to_fix_shebangs

 FWIW, my rpm spec files all use pathfix.py to adjust the python to either
 python2 or python3 depending on target python version.

-- 
Ticket URL: <https://code.mythtv.org/trac/ticket/13505#comment:1>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list