Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not add user site-packages directory to sys.path (RHEL-26646)
Adds '-s' to shebang lines. The `-s` flag ensures that the user’s Python packages (e.g. installed by pip install --user, or just placed in the current directory) don’t interfere with the RPM installed software. According to Fedora Python Packaging Guidelines, the flag is added using `%{py3_shebang_flags}` macro. Note: DNF supports plugins. There is a risk that the change will break a custom plugins that require something from PIP. Therefore, the change is only in the .spec file and is only allowed for Fedora >= 41 and RHEL >= 10.
- Loading branch information