Skip to content

Commit b04ff30

Browse files
committed
Revert "Revert "Reland "[python] Bump Python minimum version to 3.8 (llvm#78828)"""
This reverts commit c1f4f16. It sets the minimum required Python version to 3.8 and redcues delta to trunk. Change-Id: Ib4d278790768ab15205d973e98bf5857f047d712
1 parent 0a0686f commit b04ff30

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

llvm/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,8 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
986986
"Profiling data file to use when compiling in order to improve runtime performance.")
987987

988988
if(LLVM_INCLUDE_TESTS)
989-
# Lit test suite requires at least python 3.6
990-
set(LLVM_MINIMUM_PYTHON_VERSION 3.6)
989+
# All LLVM Python files should be compatible down to this minimum version.
990+
set(LLVM_MINIMUM_PYTHON_VERSION 3.8)
991991
else()
992992
# FIXME: it is unknown if this is the actual minimum bound
993993
set(LLVM_MINIMUM_PYTHON_VERSION 3.0)

llvm/docs/GettingStarted.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,9 @@ Package Version Notes
306306

307307
.. note::
308308

309-
#. Only needed if you want to run the automated test suite. Python 3.8.0
310-
or later is needed on Windows if a substitute (virtual) drive is used
311-
to access LLVM source code due to ``MAX_PATH`` limitations.
309+
#. Only needed if you want to run the automated test suite in the
310+
``llvm/test`` directory, or if you plan to utilize any Python libraries,
311+
utilities, or bindings.
312312
#. Optional, adds compression / uncompression capabilities to selected LLVM
313313
tools.
314314
#. Optional, you can use any other build tool supported by CMake.

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.6 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/ReleaseNotes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ Non-comprehensive list of changes in this release
4747
Update on required toolchains to build LLVM
4848
-------------------------------------------
4949

50+
* The minimum Python version has been raised from 3.6 to 3.8 across all of LLVM.
51+
This enables the use of many new Python features, aligning more closely with
52+
modern Python best practices, and improves CI maintainability
53+
See `#78828 <https://github.com/llvm/llvm-project/pull/78828>`_ for more info.
54+
5055
Changes to the LLVM IR
5156
----------------------
5257

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.6 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)