Skip to content

Commit

Permalink
Permit to build OVS with only Python3 installed
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
drizzt authored and blp committed Jul 24, 2018
1 parent 793bdb6 commit 9ec5331
Show file tree
Hide file tree
Showing 17 changed files with 109 additions and 85 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
67 changes: 43 additions & 24 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -348,14 +348,14 @@ AC_DEFUN([OVS_CHECK_VALGRIND],
[AC_CHECK_HEADERS([valgrind/valgrind.h])])

dnl Checks for Python 2.x, x >= 7.
AC_DEFUN([OVS_CHECK_PYTHON],
AC_DEFUN([OVS_CHECK_PYTHON2],
[AC_CACHE_CHECK(
[for Python 2.x for x >= 7],
[ovs_cv_python],
[if test -n "$PYTHON"; then
ovs_cv_python=$PYTHON
[ovs_cv_python2],
[if test -n "$PYTHON2"; then
ovs_cv_python2=$PYTHON2
else
ovs_cv_python=no
ovs_cv_python2=no
for binary in python2 python2.7 python; do
ovs_save_IFS=$IFS; IFS=$PATH_SEPARATOR
for dir in $PATH; do
Expand All @@ -366,31 +366,27 @@ if sys.hexversion >= 0x02070000 and sys.hexversion < 0x03000000:
sys.exit(0)
else:
sys.exit(1)'; then
ovs_cv_python=$dir/$binary
ovs_cv_python2=$dir/$binary
break 2
fi
done
done
if test $ovs_cv_python2 != no && test -x "$ovs_cv_python2"; then
if ! "$ovs_cv_python2" -c 'import six ; six.moves.range' >&AS_MESSAGE_LOG_FD 2>&1; then
ovs_cv_python2=no
AC_MSG_WARN([Missing Python six library or version too old.])
fi
fi
fi])
# Set $PYTHON from cache variable.
if test $ovs_cv_python = no; then
AC_MSG_ERROR([cannot find python 2.7 or higher.])
fi
AM_MISSING_PROG([PYTHON], [python])
PYTHON=$ovs_cv_python
# HAVE_PYTHON is always true. (Python has not always been a build
# requirement, so this variable is now obsolete.)
AC_SUBST([HAVE_PYTHON])
HAVE_PYTHON=yes
AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON" = yes])
AC_MSG_CHECKING([whether $PYTHON has six library])
if ! $PYTHON -c 'import six ; six.moves.range' >&AS_MESSAGE_LOG_FD 2>&1; then
AC_MSG_ERROR([Missing Python six library or version too old.])
AC_SUBST([HAVE_PYTHON2])
AM_MISSING_PROG([PYTHON2], [python2])
if test $ovs_cv_python2 != no; then
PYTHON2=$ovs_cv_python2
HAVE_PYTHON2=yes
else
HAVE_PYTHON2=no
fi
AC_MSG_RESULT([yes])])
AM_CONDITIONAL([HAVE_PYTHON2], [test "$HAVE_PYTHON2" = yes])])

dnl Checks for Python 3.x, x >= 4.
AC_DEFUN([OVS_CHECK_PYTHON3],
Expand Down Expand Up @@ -433,6 +429,29 @@ else:
fi
AM_CONDITIONAL([HAVE_PYTHON3], [test "$HAVE_PYTHON3" = yes])])

dnl Checks if you have any compatible Python version installed.
dnl Python 2.7+ has the preference to 3.4+
AC_DEFUN([OVS_CHECK_PYTHON],
[AC_CACHE_CHECK(
[for Python 2 or 3],
[ovs_cv_python],
[if test -n "$PYTHON"; then
ovs_cv_python=$PYTHON
else
ovs_cv_python=no
if test $ovs_cv_python2 != no; then
ovs_cv_python=$ovs_cv_python2
elif test $ovs_cv_python3 != no; then
ovs_cv_python=$ovs_cv_python3
else
AC_MSG_ERROR([Missing Python.])
fi
fi])
AC_SUBST([PYTHON])
PYTHON=$ovs_cv_python
AC_SUBST([HAVE_PYTHON])
HAVE_PYTHON=yes
AM_CONDITIONAL([HAVE_PYTHON], [test "$HAVE_PYTHON" = yes])])

dnl Checks for flake8.
AC_DEFUN([OVS_CHECK_FLAKE8],
Expand Down
2 changes: 1 addition & 1 deletion ovn/utilities/bugtool/automake.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if HAVE_PYTHON
if HAVE_PYTHON2
bugtool_plugins += \
ovn/utilities/bugtool/plugins/network-status/ovn.xml

Expand Down
5 changes: 5 additions & 0 deletions tests/atlocal.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# -*- shell-script -*-
HAVE_OPENSSL='@HAVE_OPENSSL@'
HAVE_PYTHON='@HAVE_PYTHON@'
HAVE_PYTHON2='@HAVE_PYTHON2@'
HAVE_PYTHON3='@HAVE_PYTHON3@'
EGREP='@EGREP@'

if test x"$PYTHON" = x; then
PYTHON='@PYTHON@'
fi

if test x"$PYTHON2" = x; then
PYTHON2='@PYTHON2@'
fi

if test x"$PYTHON3" = x; then
PYTHON3='@PYTHON3@'

Expand Down
18 changes: 9 additions & 9 deletions tests/daemon-py.at
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ m4_define([DAEMON_PYN],
AT_CHECK([test ! -e pid])
AT_CLEANUP])

DAEMON_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_MONITOR_PYN],
Expand Down Expand Up @@ -66,7 +66,7 @@ m4_define([DAEMON_MONITOR_PYN],
OVS_WAIT_WHILE([kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid])
AT_CLEANUP])

DAEMON_MONITOR_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_MONITOR_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_MONITOR_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_MONITOR_RESTART_PYN],
Expand Down Expand Up @@ -110,7 +110,7 @@ m4_define([DAEMON_MONITOR_RESTART_PYN],
OVS_WAIT_WHILE([kill -0 `cat parent` || kill -0 `cat newpid` || test -e pid])
AT_CLEANUP])

DAEMON_MONITOR_RESTART_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_MONITOR_RESTART_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_MONITOR_RESTART_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_PYN],
Expand All @@ -132,7 +132,7 @@ m4_define([DAEMON_DETACH_PYN],
AT_CHECK([test ! -e pid])
AT_CLEANUP])

DAEMON_DETACH_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_MONITOR_PYN],
Expand Down Expand Up @@ -183,7 +183,7 @@ m4_define([DAEMON_DETACH_MONITOR_PYN],
[kill -0 `cat monitor` || kill -0 `cat newdaemon` || test -e daemon])
AT_CLEANUP])

DAEMON_DETACH_MONITOR_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_MONITOR_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_MONITOR_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_ERRORS_PYN],
Expand All @@ -196,7 +196,7 @@ m4_define([DAEMON_DETACH_ERRORS_PYN],
AT_CHECK([test ! -s pid])
AT_CLEANUP])

DAEMON_DETACH_ERRORS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_ERRORS_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_ERRORS_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_MONITOR_ERRORS_PYN],
Expand All @@ -209,7 +209,7 @@ m4_define([DAEMON_DETACH_MONITOR_ERRORS_PYN],
AT_CHECK([test ! -s pid])
AT_CLEANUP])

DAEMON_DETACH_MONITOR_ERRORS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_MONITOR_ERRORS_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_MONITOR_ERRORS_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_CLOSES_FDS_PYN],
Expand All @@ -235,7 +235,7 @@ m4_define([DAEMON_DETACH_CLOSES_FDS_PYN],
fi
AT_CLEANUP])

DAEMON_DETACH_CLOSES_FDS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_CLOSES_FDS_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_CLOSES_FDS_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([DAEMON_DETACH_MONITOR_CLOSES_FDS_PYN],
Expand All @@ -262,5 +262,5 @@ m4_define([DAEMON_DETACH_MONITOR_CLOSES_FDS_PYN],
fi
AT_CLEANUP])

DAEMON_DETACH_MONITOR_CLOSES_FDS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
DAEMON_DETACH_MONITOR_CLOSES_FDS_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
DAEMON_DETACH_MONITOR_CLOSES_FDS_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])
18 changes: 9 additions & 9 deletions tests/json.at
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ m4_define([JSON_CHECK_POSITIVE_PY],
m4_define([JSON_CHECK_POSITIVE_UCS4PY],
[AT_SETUP([$1])
AT_KEYWORDS([json positive Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
AT_XFAIL_IF([test $HAVE_PYTHON = yes &&
$PYTHON -c "exit(len(u'\U00010800'))"; test $? -ne 1])
AT_SKIP_IF([test $HAVE_PYTHON2 = no])
AT_XFAIL_IF([test $HAVE_PYTHON2 = yes &&
$PYTHON2 -c "exit(len(u'\U00010800'))"; test $? -ne 1])
AT_CHECK([printf %s "AS_ESCAPE([$2])" > input])
AT_CAPTURE_FILE([input])
AT_CHECK([$PYTHON $srcdir/test-json.py $4 input], [0], [stdout], [])
AT_CHECK([$PYTHON2 $srcdir/test-json.py $4 input], [0], [stdout], [])
AT_CHECK([cat stdout], [0], [$3
])
AT_CLEANUP])

m4_define([JSON_CHECK_POSITIVE],
[JSON_CHECK_POSITIVE_C([$1 - C], [$2], [$3], [$4])
JSON_CHECK_POSITIVE_PY([$1 - Python2], [$2], [$3], [$4],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
JSON_CHECK_POSITIVE_PY([$1 - Python3], [$2], [$3], [$4],
[$HAVE_PYTHON3], [$PYTHON3])])

m4_define([JSON_CHECK_POSITIVE_PY23],
[JSON_CHECK_POSITIVE_PY([$1 - Python2], [$2], [$3], [$4],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
JSON_CHECK_POSITIVE_PY([$1 - Python3], [$2], [$3], [$4],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -75,7 +75,7 @@ m4_define([JSON_CHECK_NEGATIVE_PY],
m4_define([JSON_CHECK_NEGATIVE],
[JSON_CHECK_NEGATIVE_C([$1 - C], [$2], [$3], [$4])
JSON_CHECK_NEGATIVE_PY([$1 - Python2], [$2], [$3], [$4],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
JSON_CHECK_NEGATIVE_PY([$1 - Python3], [$2], [$3], [$4],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -156,9 +156,9 @@ AT_CLEANUP

AT_SETUP([end of input in quoted string - Python])
AT_KEYWORDS([json negative Python])
AT_SKIP_IF([test $HAVE_PYTHON = no])
AT_SKIP_IF([test $HAVE_PYTHON2 = no])
AT_CHECK([printf '"xxx' > input
$PYTHON $srcdir/test-json.py input], [1],
$PYTHON2 $srcdir/test-json.py input], [1],
[error: line 0, column 4, byte 4: unexpected end of input in quoted string
])
AT_CLEANUP
Expand Down
6 changes: 3 additions & 3 deletions tests/jsonrpc-py.at
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ m4_define([JSONRPC_REQ_REPLY_SUCCESS_PYN],
]])
AT_CLEANUP])

JSONRPC_REQ_REPLY_SUCCESS_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
JSONRPC_REQ_REPLY_SUCCESS_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
JSONRPC_REQ_REPLY_SUCCESS_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([JSONRPC_REQ_REPLY_ERROR_PYN],
Expand All @@ -27,7 +27,7 @@ m4_define([JSONRPC_REQ_REPLY_ERROR_PYN],
]])
AT_CLEANUP])

JSONRPC_REQ_REPLY_ERROR_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
JSONRPC_REQ_REPLY_ERROR_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
JSONRPC_REQ_REPLY_ERROR_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

m4_define([JSONRPC_NOTIFICATION_PYN],
Expand All @@ -42,5 +42,5 @@ m4_define([JSONRPC_NOTIFICATION_PYN],
OVS_WAIT_WHILE([test -e test-jsonrpc.py.pid])
AT_CLEANUP])

JSONRPC_NOTIFICATION_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
JSONRPC_NOTIFICATION_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
JSONRPC_NOTIFICATION_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])
4 changes: 2 additions & 2 deletions tests/library.at
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ m4_define([UNIX_SOCKET_SHORT_PATHNAME_PYN],
AT_CHECK([$3 $srcdir/test-unix-socket.py x])
AT_CLEANUP])

UNIX_SOCKET_SHORT_PATHNAME_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
UNIX_SOCKET_SHORT_PATHNAME_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
UNIX_SOCKET_SHORT_PATHNAME_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

dnl Unix sockets with long names are problematic because the name has to
Expand All @@ -205,7 +205,7 @@ m4_define([UNIX_SOCKET_LONG_PATHNAME_PYN],
AT_CHECK([cd $longname && $3 $abs_srcdir/test-unix-socket.py ../$longname/socket socket])
AT_CLEANUP])

UNIX_SOCKET_LONG_PATHNAME_PYN([Python2], [$HAVE_PYTHON], [$PYTHON])
UNIX_SOCKET_LONG_PATHNAME_PYN([Python2], [$HAVE_PYTHON2], [$PYTHON2])
UNIX_SOCKET_LONG_PATHNAME_PYN([Python3], [$HAVE_PYTHON3], [$PYTHON3])

AT_SETUP([ovs_assert])
Expand Down
20 changes: 10 additions & 10 deletions tests/ovsdb-idl.at
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ m4_define([OVSDB_CHECK_IDL_PYN],

m4_define([OVSDB_CHECK_IDL_PY],
[OVSDB_CHECK_IDL_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand All @@ -79,7 +79,7 @@ m4_define([OVSDB_CHECK_IDL_REGISTER_COLUMNS_PYN],

m4_define([OVSDB_CHECK_IDL_REGISTER_COLUMNS_PY],
[OVSDB_CHECK_IDL_REGISTER_COLUMNS_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_REGISTER_COLUMNS_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand All @@ -102,7 +102,7 @@ m4_define([OVSDB_CHECK_IDL_TCP_PYN],

m4_define([OVSDB_CHECK_IDL_TCP_PY],
[OVSDB_CHECK_IDL_TCP_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_TCP_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand All @@ -128,7 +128,7 @@ m4_define([OVSDB_CHECK_IDL_TCP6_PYN],

m4_define([OVSDB_CHECK_IDL_TCP6_PY],
[OVSDB_CHECK_IDL_TCP6_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_TCP6_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -204,7 +204,7 @@ m4_define([OVSDB_CHECK_IDL_PASSIVE_TCP_PYN],

m4_define([OVSDB_CHECK_IDL_PASSIVE_TCP_PY],
[OVSDB_CHECK_IDL_PASSIVE_TCP_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_PASSIVE_TCP_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -393,7 +393,7 @@ m4_define([OVSDB_CHECK_IDL_PYN_WITH_EXPOUT],

m4_define([OVSDB_CHECK_IDL_PY_WITH_EXPOUT],
[OVSDB_CHECK_IDL_PYN_WITH_EXPOUT([$1 - Python2], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_PYN_WITH_EXPOUT([$1 - Python3], [$2], [$3], [$4], [$5], [$6],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -927,7 +927,7 @@ m4_define([OVSDB_CHECK_IDL_FETCH_COLUMNS_PYN],

m4_define([OVSDB_CHECK_IDL_FETCH_COLUMNS_PY],
[OVSDB_CHECK_IDL_FETCH_COLUMNS_PYN([$1 - Python2], [$2], [$3], [$4], [$5], [$6], [$7],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_FETCH_COLUMNS_PYN([$1 - Python3], [$2], [$3], [$4], [$5], [$6], [$7],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -977,7 +977,7 @@ m4_define([OVSDB_CHECK_IDL_WO_MONITOR_COND_PYN],

m4_define([OVSDB_CHECK_IDL_WO_MONITOR_COND_PY],
[OVSDB_CHECK_IDL_WO_MONITOR_COND_PYN([$1 - Python2], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_WO_MONITOR_COND_PYN([$1 - Python3], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down Expand Up @@ -1306,7 +1306,7 @@ m4_define([OVSDB_CHECK_IDL_NOTIFY_PYN],

m4_define([OVSDB_CHECK_IDL_NOTIFY_PY],
[OVSDB_CHECK_IDL_NOTIFY_PYN([$1 - Python2], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_NOTIFY_PYN([$1 - Python3], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand All @@ -1316,7 +1316,7 @@ m4_define([OVSDB_CHECK_IDL_NOTIFY_SSL_PYN],

m4_define([OVSDB_CHECK_IDL_NOTIFY_SSL_PY],
[OVSDB_CHECK_IDL_NOTIFY_SSL_PYN([$1 - Python2], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON], [$PYTHON])
[$HAVE_PYTHON2], [$PYTHON2])
OVSDB_CHECK_IDL_NOTIFY_SSL_PYN([$1 - Python3], [$2], [$3], [$4], [$5],
[$HAVE_PYTHON3], [$PYTHON3])])

Expand Down
Loading

0 comments on commit 9ec5331

Please sign in to comment.