Applications using python (and py*-gtk)

Thibaut Paumard mlotpot.news at free.fr
Fri Apr 13 08:13:46 PDT 2012


Hi,

Le 13/04/12 16:58, Joshua Root a écrit :
>> I could do that by patching the shabang line:
>>    #!/usr/bin/env python2.6
> 
> You can't count on the user's $PATH being the way you want, so this
> needs to be:
> #!${prefix}/bin/python2.6
> 
> You can accomplish this like so:
> 
> reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|" \
> ${worksrcpath}/some/file.py
> 

Thanks for the two simultaneous answers. You are right, of course. In
which phase must it be done to affect correctly binary installs? Am I
right in believing this would be in a post-activate hook?

Regards, Thibaut.




More information about the macports-dev mailing list