• Steve Beattie's avatar
    utils: stop rewriting shbang lines in setup script · 62e91696
    Steve Beattie authored
    The python setup tools script is set to rewrite the shbang line of
    scripts installed in ${PREFIX}/bin/ if the PYTHON environment variable
    is set. Unfortunately, this (a) only covers the aa-easyprof script
    as the rest are installed in ${PREFIX}/sbin/, and (b) we've deprecated
    python 2 support, and hardcoded python3 as the interpreter for all of
    the python scripts in the utils/ directory.
    
    The only use for this feature would be if for some reason the utils did
    not work properly with the default python3 interpreter and a specific
    version was needed to be set, but I don't think that warrants keeping
    the extra bit of code complexity around (and indeed, the snippet that
    does this is forcibly disabled in Debian/Ubuntu).
    
    Therefore, drop the shbang rewriting entirely.
    Signed-off-by: Steve Beattie's avatarSteve Beattie <steve@nxnw.org>
    Acked-by: 's avatarJohn Johansen <john.johansen@canonical.com>
    62e91696
python-tools-setup.py 2.82 KB