]> git.proxmox.com Git - mirror_ovs.git/commit
Permit to build OVS with only Python3 installed
authorTimothy Redaelli <tredaelli@redhat.com>
Fri, 22 Jun 2018 18:04:10 +0000 (20:04 +0200)
committerBen Pfaff <blp@ovn.org>
Tue, 24 Jul 2018 23:02:48 +0000 (16:02 -0700)
commit9ec533122fdbcfe94dd8cd8442aba7274abad9a3
tree94f479cc115bcfc116d853a0cf7b48df2f9f0ff3
parent793bdb6c050081967160874e0d0bfa6480ba232a
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 <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
17 files changed:
configure.ac
m4/openvswitch.m4
ovn/utilities/bugtool/automake.mk
tests/atlocal.in
tests/daemon-py.at
tests/json.at
tests/jsonrpc-py.at
tests/library.at
tests/ovsdb-idl.at
tests/ovsdb.at
tests/reconnect.at
tests/system-kmod-macros.at
tests/system-userspace-macros.at
tests/unixctl-py.at
tests/vlog.at
utilities/automake.mk
utilities/bugtool/automake.mk