mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +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:
parent
177e4b4bad
commit
e2c352e4f8
1 changed files with 1 additions and 1 deletions
|
|
@ -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; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue