diff options
author | Eli Schwartz <[email protected]> | 2019-06-10 12:08:53 -0400 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-06-10 09:08:53 -0700 |
commit | 215e4fe4d2d38a095ea99c537f395e00d51d3995 (patch) | |
tree | 681e23b3382f7a682469e9160e994e1dd5cbe78e /cmd/arc_summary/Makefile.am | |
parent | 01d1e88b1aad73f76b0071fba1a79d79bda24c96 (diff) |
arc_summary: prefer python3 version and install when there is no python
This matches the behavior of other python scripts, such as arcstat and
dbufstat, which are always installed but whose install-exec-hook actions
will simply touch up the shebang if a python interpreter was configured
*and* that interpreter is a python2 interpreter.
Fixes installation in a minimal build chroot without python available.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Ryan Moeller <[email protected]>
Signed-off-by: Eli Schwartz <[email protected]>
Closes #8851
Diffstat (limited to 'cmd/arc_summary/Makefile.am')
-rw-r--r-- | cmd/arc_summary/Makefile.am | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/arc_summary/Makefile.am b/cmd/arc_summary/Makefile.am index a83edffad..7d83624d6 100644 --- a/cmd/arc_summary/Makefile.am +++ b/cmd/arc_summary/Makefile.am @@ -4,9 +4,7 @@ if USING_PYTHON_2 dist_bin_SCRIPTS = arc_summary2 install-exec-hook: mv $(DESTDIR)$(bindir)/arc_summary2 $(DESTDIR)$(bindir)/arc_summary -endif - -if USING_PYTHON_3 +else dist_bin_SCRIPTS = arc_summary3 install-exec-hook: mv $(DESTDIR)$(bindir)/arc_summary3 $(DESTDIR)$(bindir)/arc_summary |