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

2022-01-04 Thread Vitaly Zaitsev via devel
On 05/01/2022 08:46, Nico Kadel-Garcia wrote: Can you point to where that is forbidden? https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines env, /bin/env and /usr/bin/env MUST NOT be used. The interpreter used to run packaged applications cannot depend upon what the

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

2022-01-04 Thread Nico Kadel-Garcia
On Wed, Jan 5, 2022 at 2:34 AM Vitaly Zaitsev via devel wrote: > > On 04/01/2022 19:36, Nico Kadel-Garcia wrote: > > #!/usr/bin/env python3 > > Forbidden by Python guidelines too. Can you point to where that is forbidden? Because it remains quite popular for various working environments with

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

2022-01-04 Thread Vitaly Zaitsev via devel
On 04/01/2022 19:36, Nico Kadel-Garcia wrote: #!/usr/bin/env python3 Forbidden by Python guidelines too. -- Sincerely, Vitaly Zaitsev (vit...@easycoding.org) ___ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to

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

2022-01-04 Thread Nico Kadel-Garcia
On Tue, Jan 4, 2022 at 8:11 AM Miro Hrončok 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

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

2022-01-04 Thread Miro Hrončok
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.

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

2022-01-04 Thread Vitaly Zaitsev via devel
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

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

2022-01-04 Thread Miro Hrončok
On 04. 01. 22 11:09, Florian Weimer wrote: Or is it still banned in Fedora? 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 still

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

2022-01-04 Thread Gary Buhrmaster
On Tue, Jan 4, 2022 at 10:09 AM Florian Weimer wrote: > > Or is it still banned in Fedora? > > 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.

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

2022-01-04 Thread Jan Drögehoff
According to the guidelines its still required to change the shebang to python3 https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_shebangs Jan Jan 4, 2022 11:09:40 AM Florian Weimer : > Or is it still banned in Fedora? > > We have some scripts that are dual Python 2/Python 3,

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

2022-01-04 Thread Florian Weimer
Or is it still banned in Fedora? 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. Thanks, Florian ___