Skip to content

Commit e00b166

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 to improve the maintainability of CI.
1 parent 2cbcee4 commit e00b166

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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
=========================================================== ============ ==========================================

llvm/docs/GettingStartedVS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Visual Studio 2019 so separate installation is not required. If you do install
5555
CMake separately, Visual Studio 2022 will require CMake Version 3.21 or later.
5656

5757
If you would like to run the LLVM tests you will need `Python
58-
<http://www.python.org/>`_. Version 3.7 and newer are known to work. You can
58+
<http://www.python.org/>`_. Version 3.8 and newer are known to work. You can
5959
install Python with Visual Studio 2019, from the Microsoft store or from
6060
the `Python web site <http://www.python.org/>`_. We recommend the latter since it
6161
allows you to adjust installation options.

llvm/docs/TestingGuide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Requirements
2323
============
2424

2525
In order to use the LLVM testing infrastructure, you will need all of the
26-
software required to build LLVM, as well as `Python <http://python.org>`_ 3.7 or
26+
software required to build LLVM, as well as `Python <http://python.org>`_ 3.8 or
2727
later.
2828

2929
LLVM Testing Infrastructure Organization

0 commit comments

Comments
 (0)