On 11. 05. 22 15:27, Ben Cotton wrote:
https://fedoraproject.org/wiki/Changes/PythonSafePath == Summary == The [https://docs.python.org/3.11/using/cmdline.html#cmdoption-P `-P` flag] will be added to the Python shebang macros (`%{py3_shbang_opts}`, `%{py3_shebang_flags}`, ...). Packages that adhere to those macros will change their Python shebangs from `#! /usr/bin/python3 -s` to `#! /usr/bin/python3 -sP` and as a result, will no longer have the directory of the script (such as `/usr/bin`) in `sys.path`. An opt-out mechanism exists.
python-rpm-macros-3.11-3.fc37 with this change just landed in Rawhide in time for the mass rebuild.
We have identified one package that needed to opt-out and one package that needed a workaround:
https://src.fedoraproject.org/rpms/llvm/pull-request/146 https://src.fedoraproject.org/rpms/python-sphinxcontrib-programoutput/pull-request/5 To opt-out, if needed, see: https://fedoraproject.org/wiki/Changes/PythonSafePath#Opting_out The list of packages that will have different shebangs is at: https://fedoraproject.org/wiki/Changes/PythonSafePath#List_of_source_RPM_packages_that_will_gain_-P_in_some_of_the_built_package(s) -- Miro Hrončok -- Phone: +420777974800 IRC: mhroncok _______________________________________________ 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