From ebfa5b71855e96f9cef56d0d3d5b86aec86d2904 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 21 May 2025 10:06:47 -0400 Subject: [PATCH] Decrease minimum Python version to 3.6 It was pointed out on the Open MPI packagers mailing list that RHEL 8 (and clones) has Python 3.6 inbox. If we only allow Open MPI to build with Python >= 3.7, we'll break all builds on RHEL 8 (etc.). That seems like a bad idea. * Update the git submodule for the pympistandard module to a version that is friendly to running with Python 3.6. * List the additional pip modules in docs/requirements.txt that are needed by pympistandard to be able to run with Python 3.6. Signed-off-by: Jeff Squyres --- 3rd-party/pympistandard | 2 +- VERSION | 2 +- docs/requirements.txt | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/3rd-party/pympistandard b/3rd-party/pympistandard index 7bc6bb0ff96..6032f68dd96 160000 --- a/3rd-party/pympistandard +++ b/3rd-party/pympistandard @@ -1 +1 @@ -Subproject commit 7bc6bb0ff9630542fb0030ac4d976bef1f1cb026 +Subproject commit 6032f68dd9636b48977f59e986acc01a746593a6 diff --git a/VERSION b/VERSION index 8d6fb9075fa..9baf32a6304 100644 --- a/VERSION +++ b/VERSION @@ -33,7 +33,7 @@ automake_min_version=1.13.4 autoconf_min_version=2.69.0 libtool_min_version=2.4.2 flex_min_version=2.5.4 -python_min_version=3.7 +python_min_version=3.6 # greek is generally used for alpha or beta release tags. If it is # non-empty, it will be appended to the version number. It does not diff --git a/docs/requirements.txt b/docs/requirements.txt index 80798525f3d..001c5f10adf 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -2,3 +2,11 @@ sphinx>=4.2.0 recommonmark docutils sphinx-rtd-theme + +# These modules are needed for the pympistandard module when you are +# running Python 3.6 (they became part of core Python in 3.7). We +# specifically use "==" (vs. "<=") because the top-level Open MPI +# VERSION file lists Python 3.6 as the minimum required version of +# Python -- we will never be using < 3.6 to build the Open MPI docs. +importlib_resources; python_version == "3.6" +dataclasses; python_version == "3.6"