Re: [PATCH] Use env to find python
Zac Medico <[email protected]>
| Newsgroups | gmane.linux.gentoo.portage.devel |
|---|---|
| Message-ID | <[email protected]> |
On 6/16/20 10:46 AM, Mike Gilbert wrote: > On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert <[email protected]> wrote: >> >> On Mon, Jun 15, 2020 at 9:39 AM Sid Spry <[email protected]> wrote: >>> >>> On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: >>>> But we know that it is in /usr/bin, so why add yet another indirection? >>>> >>>> Attachments: >>>> * signature.asc >>> >>> Ah, sorry -- I forgot to note this here. If you wish to support prefix it is possible it may not be in /usr/bin. Granted I am not sure if the prefix stage3 I was using is old enough to be broken in some way, but adding this would prevent future breakage. >> >> The portage ebuild and the python distutils module already take care >> of updating shebangs at install time. > > I suppose your patch might be useful if you are trying to run portage > from a git checkout on a prefix system. > So, given that the ebuild updates shebangs automatically, should't we optimize the default shebangs to be as flexible as possible? -- Thanks, Zac
signature.asc
(application/pgp-signature, 981 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAEBCgB9FiEE8OgXaltWzqgSupCu0HX7jBBKPSAFAl7pB3RfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEYw RTgxNzZBNUI1NkNFQTgxMkJBOTBBRUQwNzVGQjhDMTA0QTNEMjAACgkQ0HX7jBBK PSCbJBAAmWrFemBEpSyUt3kH5I+MClsvnW8aNS/G9lEjFjffEOGZJqlcnYM68p7M t/bgM6kkmmGSYVWWOstdxjFYdv3Tbq8P12au7Q4A79vZsVqjgTV8ReV7ddTJ0+/L szlzPqeFtYrxYhYQ5W2YkbX1KLXttHqGYWvCspcaKEib0UIk3xj5SiEEX1ePwAYf PVDLHk+zIP/zzQN/Xz0IkRh1eYKvEnY9CPfyx9yaBZRUb6u0g5KBslH5PUFUHx3t AmzHv4a1bhZhn1cFkVdrWp8BLmqqIp6m8zBpVB935sMqLuFlX01HsYkTNZPZcxlj N6CT1j1JgfUoRqms1VsF2zOxX/615CqzNUHaQFQnWYuaaHbq1iIiw3iBsRFR+Jjm StccqxnkyS+SZ2LXeG00bKCJxsksBT9Jn7drM5UX/unV6nBGh1E1o1ohk/B3MkZ1 gGAZHFxWDJ6YTcRHxxAccYoirNXydNG2R9WMXS4XGIAaE8NEf57lK3MYNkfzp//K xi1Se/J91x4jATqZBwliCZgXO5tzIx1DrmeA3GtgcfY6t8RdLy9iYXrxIwzQGOdg +L0IHthx/PFu4D8buch4yJ3PZFlZSUNy4zwlRCFHOmB1xhmBTsgKPal4oOFwAcXR MA3cNYEYPUPg5WJmKrEU/tLU02RaEkJMXaBcPrA+R1f2GVZZ99k= =V7AK -----END PGP SIGNATURE-----