From 6e876a771359dc7eadde1301ae9ddeb241935183 Mon Sep 17 00:00:00 2001 From: Craig Hesling Date: Fri, 19 Jan 2024 18:22:41 -0800 Subject: [PATCH] [python] Bump Python minimum version to 3.8 As per the RFC https://discourse.llvm.org/t/rfc-upgrading-llvms-minimum-required-python-version/67571, raise the minimum Python version to ensure that the Python syntax doesn't become overly obsolete, to enable new Python feature usage, and ensure the maintainability of CI. --- llvm/CMakeLists.txt | 2 +- llvm/docs/GettingStarted.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt index 9ae6ac819de83..c7c21971039ee 100644 --- a/llvm/CMakeLists.txt +++ b/llvm/CMakeLists.txt @@ -881,7 +881,7 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH if(LLVM_INCLUDE_TESTS) # All LLVM Python files should be compatible down to this minimum version. - set(LLVM_MINIMUM_PYTHON_VERSION 3.7) + set(LLVM_MINIMUM_PYTHON_VERSION 3.8) else() # FIXME: it is unknown if this is the actual minimum bound set(LLVM_MINIMUM_PYTHON_VERSION 3.0) diff --git a/llvm/docs/GettingStarted.rst b/llvm/docs/GettingStarted.rst index 3dc4c131b85d7..cb695e1a0b44b 100644 --- a/llvm/docs/GettingStarted.rst +++ b/llvm/docs/GettingStarted.rst @@ -286,7 +286,7 @@ uses the package and provides other details. Package Version Notes =========================================================== ============ ========================================== `CMake `__ >=3.20.0 Makefile/workspace generator -`python `_ >=3.7 Automated test suite\ :sup:`1` +`python `_ >=3.8 Automated test suite\ :sup:`1` `zlib `_ >=1.2.3.4 Compression library\ :sup:`2` `GNU Make `_ 3.79, 3.79.1 Makefile/build processor\ :sup:`3` =========================================================== ============ ==========================================