]> git.proxmox.com Git - ovs.git/blobdiff - vswitchd/automake.mk
Require Python 3 and remove support for Python 2.
[ovs.git] / vswitchd / automake.mk
index abdbcc698ba7a823b2eddf09a23660687800e0a1..595d1e46a9c00792c40d2bb84b0fdf873f5ad9ee 100644 (file)
@@ -26,18 +26,16 @@ pkgdata_DATA += vswitchd/vswitch.ovsschema
 #
 # If "python" or "dot" is not available, then we do not add graphical diagram
 # to the documentation.
-if HAVE_PYTHON
 if HAVE_DOT
 vswitchd/vswitch.gv: ovsdb/ovsdb-dot.in vswitchd/vswitch.ovsschema
        $(AM_V_GEN)$(OVSDB_DOT) --no-arrows $(srcdir)/vswitchd/vswitch.ovsschema > $@
 vswitchd/vswitch.pic: vswitchd/vswitch.gv ovsdb/dot2pic
-       $(AM_V_GEN)(dot -T plain < vswitchd/vswitch.gv | $(PYTHON) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
+       $(AM_V_GEN)(dot -T plain < vswitchd/vswitch.gv | $(PYTHON3) $(srcdir)/ovsdb/dot2pic -f 3) > $@.tmp && \
        mv $@.tmp $@
 VSWITCH_PIC = vswitchd/vswitch.pic
 VSWITCH_DOT_DIAGRAM_ARG = --er-diagram=$(VSWITCH_PIC)
 CLEANFILES += vswitchd/vswitch.gv vswitchd/vswitch.pic
 endif
-endif
 
 # vswitch schema documentation
 EXTRA_DIST += vswitchd/vswitch.xml