mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +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
|
MKDIR := mkdir -p
|
||||||
AWK := awk
|
AWK := awk
|
||||||
PERL := perl
|
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))
|
PYTHON ?= $(shell basename $(FULL_PYTHON))
|
||||||
FIND := find
|
FIND := find
|
||||||
SH := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
SH := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
|
||||||
|
Reference in New Issue
Block a user