From 1ca0323e7c29dc7ef5a615c265df0460208f92de Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 20 Sep 2019 08:30:42 -0700 Subject: Require Python 3 and remove support for Python 2. Python 2 reaches end-of-life on January 1, 2020, which is only a few months away. This means that OVS needs to stop depending on in the next release that should occur roughly that same time. Therefore, this commit removes all support for Python 2. It also makes Python 3 a mandatory build dependency. Some of the interesting consequences: - HAVE_PYTHON, HAVE_PYTHON2, and HAVE_PYTHON3 conditionals have been removed, since we now know that Python3 is available. - $PYTHON and $PYTHON2 are removed, and $PYTHON3 is always available. - Many tests for Python 2 support have been removed, and the ones that depended on Python 3 now run unconditionally. This allowed several macros in the testsuite to be removed, making the code clearer. This does make some of the changes to the testsuite files large due to indentation level changes. - #! lines for Python now use /usr/bin/python3 instead of /usr/bin/python. - Packaging depends on Python 3 packages. Acked-by: Numan Siddique Tested-by: Numan Siddique Signed-off-by: Ben Pfaff --- Vagrantfile-FreeBSD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Vagrantfile-FreeBSD') diff --git a/Vagrantfile-FreeBSD b/Vagrantfile-FreeBSD index 52599eefa..d978faa1c 100644 --- a/Vagrantfile-FreeBSD +++ b/Vagrantfile-FreeBSD @@ -12,7 +12,7 @@ Vagrant.require_version ">=1.7.0" $bootstrap_freebsd = <