mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +00:00
tools.mk: Use Python 3 by default
As of January 1st, 2020 Python 2 is no longer supported and many distributions no longer provide packages for Python 2 dependencies. This patch allows CRIU to use Python 3 by default when both major versions are available on the system. Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
This commit is contained in:
committed by
Andrei Vagin
parent
177e4b4bad
commit
e2c352e4f8
@@ -22,7 +22,7 @@ MAKE := make
|
||||
MKDIR := mkdir -p
|
||||
AWK := awk
|
||||
PERL := perl
|
||||
FULL_PYTHON := $(shell which python2 2>/dev/null || which python3 2>/dev/null)
|
||||
FULL_PYTHON := $(shell which python3 2>/dev/null || which python2 2>/dev/null)
|
||||
PYTHON ?= $(shell basename $(FULL_PYTHON))
|
||||
FIND := find
|
||||
SH := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
||||
|
Reference in New Issue
Block a user