[Freeipa-devel] Hashbang line in IPA scripts

Jan Cholasta jcholast at redhat.com
Wed Dec 7 07:21:24 UTC 2011


Dne 2.12.2011 17:00, Simo Sorce napsal(a):
> On Fri, 2011-12-02 at 15:50 +0100, Jan Cholasta wrote:
>> Hi,
>>
>> We currently use this hashbang line in IPA scripts:
>>
>>       #! /usr/bin/python -E
>>
>> IMHO this should be changed to point to Python 2 binary specifically:
>>
>>       #! /usr/bin/python2 -E
>>
>> for the sake of distros, which symlink /usr/bin/python to Python 3
>> binary by default (Fedora 17?).
>>
>> Honza
>
> Send a patch, but is python2 guaranteed to be always available (thinking
> RHEL for example) ?
>
> Simo.
>

An option is to use distutils (setup.py) on all the scripts, as it 
automatically changes the hashbang line to point to the correct interpreter.

Honza

-- 
Jan Cholasta




More information about the Freeipa-devel mailing list