Don't add -P to Python shebangs

Opt-out from https://fedoraproject.org/wiki/Changes/PythonSafePath

The executable Python scripts in /usr/share/opt-viewer/ import each other.
This commit is contained in:
Miro Hrončok 2022-07-19 12:49:30 +02:00
parent 2e920ed4cb
commit dc7156ce5a
1 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,11 @@
%global llvm_triple %{_host}
%endif
# https://fedoraproject.org/wiki/Changes/PythonSafePath#Opting_out
# Don't add -P to Python shebangs
# The executable Python scripts in /usr/share/opt-viewer/ import each other
%undefine _py3_shebang_P
Name: %{pkg_name}
Version: %{maj_ver}.%{min_ver}.%{patch_ver}%{?rc_ver:~rc%{rc_ver}}
Release: 2%{?dist}