Re: Is it okay to use /usr/bin/python again?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 4, 2022 at 8:11 AM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote:
>
> On 04. 01. 22 13:57, Vitaly Zaitsev via devel wrote:
> > On 04/01/2022 11:09, Florian Weimer wrote:
> >> We have some scripts that are dual Python 2/Python 3, and Fedora tooling
> >> forced us to carry a downstream-only patch to replace /usr/bin/python
> >> with /usr/bin/python3.  I'd like to remove this patch.
> >
> > It is forbidden.
> >
> > You should switch your SPEC to modern 201x-era guidelines
>
> 202x-era
>
> > and all shebangs will
> > be handled automatically with the %pyproject_install macro.
>
> That is only happening for files installed to /usr/bin, not to files you use
> during builds.

It confuses the heck out of building Fedora. "/ur/bin/python" may not
be python3 on a remote system, especially a legacy system. Please,
explicitly use "#!/usr/bin/python3" or "#!/usr/bin/env python3".
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux