I believe that distutils will rewrite the shebang to absolute path of the 
interpreter used to invoke setup.py, unless it is overridden in some manner 
(i.e., "python ./setup.py build --executable=path/to/python )

I personally feel this is the proper way to set the interpreter.  And, for the 
record, a python2 symlink is not installed by either MacPorts python builds or 
Apple's distribution.

Raising an exception when invoked by Python 3 is certainly reasonable, though.

--phil

On Jan 13, 2011, at 6:00 PM, Bertrand Chenal wrote:

> 
> Hi,
> 
> 
> Currently, the shebang on top of bin/trytond and bin/tryton is 
> 
> #!/usr/bin/env python
> 
> I propose to use
> 
> #!/usr/bin/env python2
> 
> instead, because trytond does not work with python3 and so raise an
> exception if python3 is the default (like in archlinux). I checked on
> ubuntu 10.04 and python2 exist, but I don't know if it's the same on
> other distribution.
> 
> Cheers,
> 
> -- 
> 
> Bertrand Chenal
> 
> B2CK SPRL
> Rue de Rotterdam, 4
> 4000 Liège
> Belgium
> Tel: +32 472 54 46 59
> Email: [email protected]
> Website: http://www.b2ck.com/
> 
> -- 
> [email protected] mailing list

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to