On Tue, Jan 4, 2022 at 8:11 AM Miro Hrončok <mhroncok(a)redhat.com> 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".