diff options
author | Timothy Redaelli <tredaelli@redhat.com> | 2018-06-22 20:04:10 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-07-24 16:02:48 -0700 |
commit | 9ec533122fdbcfe94dd8cd8442aba7274abad9a3 (patch) | |
tree | 94f479cc115bcfc116d853a0cf7b48df2f9f0ff3 /configure.ac | |
parent | 793bdb6c050081967160874e0d0bfa6480ba232a (diff) | |
download | openvswitch-9ec533122fdbcfe94dd8cd8442aba7274abad9a3.tar.gz |
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>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
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 |