]> git.proxmox.com Git - ovs.git/commit
Require Python 3 and remove support for Python 2.
authorBen Pfaff <blp@ovn.org>
Fri, 20 Sep 2019 15:30:42 +0000 (08:30 -0700)
committerBen Pfaff <blp@ovn.org>
Fri, 27 Sep 2019 16:23:50 +0000 (09:23 -0700)
commit1ca0323e7c29dc7ef5a615c265df0460208f92de
tree377630fee2130b269cfe2fd348c9e8c6bc5a814a
parent187bb41fbf447acf9fb6ac117dc923bbe649e78c
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 <nusiddiq@redhat.com>
Tested-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
80 files changed:
.cirrus.yml
.travis/osx-prepare.sh
Documentation/intro/install/fedora.rst
Documentation/intro/install/general.rst
Documentation/intro/install/netbsd.rst
Documentation/intro/install/rhel.rst
Documentation/intro/install/windows.rst
Documentation/intro/install/xenserver.rst
Makefile.am
Vagrantfile
Vagrantfile-FreeBSD
appveyor.yml
build-aux/check-structs
build-aux/extract-ofp-actions
build-aux/extract-ofp-errors
build-aux/extract-ofp-fields
build-aux/extract-ofp-msgs
build-aux/sodepends.py
build-aux/soexpand.py
build-aux/text2c
build-aux/xml2nroff
configure.ac
debian/.gitignore
debian/automake.mk
debian/control
debian/openvswitch-test.install
debian/python-openvswitch.dirs [deleted file]
debian/python-openvswitch.install [deleted file]
debian/python3-openvswitch.dirs [new file with mode: 0644]
debian/python3-openvswitch.install [new file with mode: 0644]
debian/rules
include/openflow/automake.mk
ipsec/ovs-monitor-ipsec.in
m4/openvswitch.m4
manpages.mk
ovsdb/ovsdb-dot.in
ovsdb/ovsdb-idlc.in
python/automake.mk
rhel/openvswitch-fedora.spec.in
tests/atlocal.in
tests/automake.mk
tests/check-structs.at
tests/checkpatch.at
tests/daemon-py.at
tests/flowgen.py
tests/interface-reconfigure.at
tests/json.at
tests/jsonrpc-py.at
tests/library.at
tests/ofproto-dpif.at
tests/ofproto.at
tests/ovs-macros.at
tests/ovs-xapi-sync.at
tests/ovsdb-data.at
tests/ovsdb-idl.at
tests/ovsdb-macros.at
tests/ovsdb-monitor.at
tests/reconnect.at
tests/system-common-macros.at
tests/system-kmod-macros.at
tests/system-traffic.at
tests/system-userspace-macros.at
tests/unixctl-py.at
tests/vlog.at
utilities/automake.mk
utilities/bugtool/automake.mk
utilities/bugtool/ovs-bugtool.in
utilities/checkpatch.py
utilities/ovs-check-dead-ifs.in
utilities/ovs-dpctl-top.in
utilities/ovs-l3ping.in
utilities/ovs-parse-backtrace.in
utilities/ovs-pcap.in
utilities/ovs-tcpdump.in
utilities/ovs-tcpundump.in
utilities/ovs-test.in
utilities/ovs-vlan-test.in
vswitchd/automake.mk
vtep/automake.mk
vtep/ovs-vtep.in