From 9ec533122fdbcfe94dd8cd8442aba7274abad9a3 Mon Sep 17 00:00:00 2001 From: Timothy Redaelli Date: Fri, 22 Jun 2018 20:04:10 +0200 Subject: Permit to build OVS with only Python3 installed This commit renames HAVE_PYTHON to HAVE_PYTHON2 and PYTHON to PYTHON2 and adds HAVE_PYTHON and PYTHON with a different semantics: - If PYTHON environment variable is set, use it as PYTHON - If a python2 interpreter is available, PYTHON became the python2 interpreter - If a python3 interpreter is available, PYTHON became the python3 interpreter PYTHON is only used to run the python scripts needed by the build system NOTE: Since currently most of the utilities and bugtool doesn't support Python3, they're installed only if python2 is available. This will be fixed in later commits. Signed-off-by: Timothy Redaelli Signed-off-by: Ben Pfaff --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c89c607c7..070edcf4f 100644 --- a/configure.ac +++ b/configure.ac @@ -90,8 +90,9 @@ OVS_CHECK_NETLINK OVS_CHECK_OPENSSL OVS_CHECK_LIBCAPNG OVS_CHECK_LOGDIR -OVS_CHECK_PYTHON +OVS_CHECK_PYTHON2 OVS_CHECK_PYTHON3 +OVS_CHECK_PYTHON OVS_CHECK_FLAKE8 OVS_CHECK_SPHINX OVS_CHECK_DOT -- cgit v1.2.1