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/pul...
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_...
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok