[Freeipa-devel] Hashbang line in IPA scripts
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 -- Jan Cholasta ___ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel
Re: [Freeipa-devel] Hashbang line in IPA scripts
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. -- Simo Sorce * Red Hat, Inc * New York ___ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel
Re: [Freeipa-devel] Hashbang line in IPA scripts
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 ___ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel