Skip to content

Commit 6e876a7

Browse files
committed
[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.
1 parent 70d5ed3 commit 6e876a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
881881

882882
if(LLVM_INCLUDE_TESTS)
883883
# All LLVM Python files should be compatible down to this minimum version.
884-
set(LLVM_MINIMUM_PYTHON_VERSION 3.7)
884+
set(LLVM_MINIMUM_PYTHON_VERSION 3.8)
885885
else()
886886
# FIXME: it is unknown if this is the actual minimum bound
887887
set(LLVM_MINIMUM_PYTHON_VERSION 3.0)

llvm/docs/GettingStarted.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ uses the package and provides other details.
286286
Package Version Notes
287287
=========================================================== ============ ==========================================
288288
`CMake <http://cmake.org/>`__ >=3.20.0 Makefile/workspace generator
289-
`python <http://www.python.org/>`_ >=3.7 Automated test suite\ :sup:`1`
289+
`python <http://www.python.org/>`_ >=3.8 Automated test suite\ :sup:`1`
290290
`zlib <http://zlib.net>`_ >=1.2.3.4 Compression library\ :sup:`2`
291291
`GNU Make <http://savannah.gnu.org/projects/make>`_ 3.79, 3.79.1 Makefile/build processor\ :sup:`3`
292292
=========================================================== ============ ==========================================

0 commit comments

Comments
 (0)