Skip to content

Commit

Permalink
m4: Fix check for Python 3.6 version.
Browse files Browse the repository at this point in the history
The check is still looking for Pythn 3.4, instead of 3.6.

Also, RHEL documentation points to EPEL for RHEL 6, but it
only contains Python 3.4, so remove the pointer.

Fixes: 4d55a36 ("python: Add async DNS support.")
Acked-by: Eelco Chaudron <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Dec 13, 2024
1 parent 84a98a8 commit 5346c14
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Documentation/intro/install/rhel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,8 @@ If python3-sphinx package is not available in your version of RHEL, you can
install it via pip with 'pip install sphinx'.

Open vSwitch requires python 3.6 or newer which is not available in older
distributions. In the case of RHEL 6.x and its derivatives, one option is
to install python34 from `EPEL`_.

.. _EPEL: https://fedoraproject.org/wiki/EPEL
distributions. For those, one option is to build and install required version
from source.

.. _rhel-bootstrapping:

Expand Down
2 changes: 1 addition & 1 deletion m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ AC_DEFUN([OVS_CHECK_PYTHON3],
IFS=$ovs_save_IFS
test -z "$dir" && dir=.
if test -x "$dir"/"$binary" && "$dir"/"$binary" -c 'import sys
if sys.hexversion >= 0x03040000 and sys.hexversion < 0x04000000:
if sys.hexversion >= 0x03060000 and sys.hexversion < 0x04000000:
sys.exit(0)
else:
sys.exit(1)'; then
Expand Down

0 comments on commit 5346c14

Please sign in to comment.