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.
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev