On 10.9.2018 14:47, Jonathan Wakely wrote:
On 10/09/18 13:21 +0200, Miro Hrončok wrote:
Hi, according to my query, latest build of your package failed the Taskotron check that checks if the brp-magle-sehbang script mangled the shebangs from python to python2.

See something like this in the build.log:

*** WARNING: mangling shebang in ... from #!/usr/bin/env python to #!/usr/bin/python2. This will become an ERROR, fix it manually!

This will soon become an error in F30 as promised 2 releases ago.

https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error

The motivation is to not drag dependency on python2 when it is not needed. If you are hit by this error, you should check whether the executable Python file with the Python shebang is actually needed in your package. If it is needed, fix the shebang manually to python3 or python2 explicitly.

Here's how:

https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error#Using_pathfix.py_to_fix_shebangs
boost                denisarnaud jwakely

Was your query against the build.log of the current rawhide build, or
by building the latest spec in rawhide?

Current rawhide build (I queried the taskotron results).

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org

Reply via email to