On 6/30/22 05:12, Miro Hrončok wrote:
Basically, packagers would do something like this:
# Unset -s on python shebang - ensure that extensions installed with pip # to user locations are seen and properly loaded %global _python3_shebang_nousersite %{nil}
Or:
# Don't add -P to Python shebang # This package only works when /usr/bin is in sys.path %global _python3_shebang_safepath %{nil}
The macro names are not set in stone, it could even be %_python3_shebang_s and %_python3_shebang_P.
The previous sed-based way would still work and packages that already use it would not need to change immediately.
Do you consider the macro based approach better (worth it)? And if so, do you prefer actual flag letters in the macro names, or the verbose names?
I love the macros approach because it encourages consistency while still allowing for manual adjustments instead (using sed or something else). It also ensures that if more tweaks are needed later, maintainers can still use the same macros and the actions of the macros can be adjusted underneath.
Macros also look good to me because I frequently make typos when I assemble complicated sed matchers, but I may be alone here. 😂