aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libnvpair
diff options
context:
space:
mode:
authorRyan Moeller <[email protected]>2019-09-12 16:32:32 -0400
committerBrian Behlendorf <[email protected]>2019-09-12 13:32:32 -0700
commit4f342e45be19d0bb8e32f38664dc29a12092dfe9 (patch)
tree685ca60e63c7b977750249f326143cf305699203 /lib/libnvpair
parentb01a6574aebbf50504db2c1b28de5a9d288be1a5 (diff)
Canonicalize Python shebangs
/usr/bin/env python3 is the suggested[1] shebang for Python in general (likewise for python2) and is conventional across platforms. This eases development on systems where python is not installed in /usr/bin (FreeBSD for example) and makes it possible to develop in virtual environments (venv) for isolating dependencies. Many packaging guidelines discourage the use of /usr/bin/env, but since this is the canonical way of writing shebangs in the Python community, many packaging scripts are already equipped to handle substituting the appropriate absolute path to python automatically. Some RPM package builders lacking brp-mangle-shebangs need a small fallback mechanism in the package spec to stamp the appropriate shebang on installed Python scripts. [1]: https://docs.python.org/3/using/unix.html?#miscellaneous Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Ryan Moeller <[email protected]> Closes #9314
Diffstat (limited to 'lib/libnvpair')
0 files changed, 0 insertions, 0 deletions