Applications using python (and py*-gtk)

Rainer Müller raimue at macports.org
Fri Apr 13 08:00:56 PDT 2012


On 04/13/2012 04:41 PM, Thibaut Paumard wrote:
> I think this is not correct and I should ensure the python that is used
> really is the one for which I make sure py-gtk gets installed.
> 
> I could do that by patching the shabang line:
>    #!/usr/bin/env python2.6

Actually this should read:

     #!/opt/local/bin/python2.6

Where /opt/local is replaced with the value of ${prefix}. This could be
done with a reinplace [1] in one of the port phases.

> but before I do that, I would like to check whether you have better
> suggestions, and perhaps which python version is the favoured one
> nowadays (from what I see in python module ports, I'm guessing it must
> be 2.7).

Yes, python27 would be preferred.

Rainer

[1] http://guide.macports.org/chunked/reference.tcl-extensions.html


More information about the macports-dev mailing list