Skip to content

Commit 2dfa30d

Browse files
Revert "[python] Bump Python minimum version to 3.8 (#78828)"
This reverts commit 0a6c74e. This created a lot of post-commit failures due to buildbots running older versions of Python.
1 parent f02f169 commit 2dfa30d

File tree

5 files changed

+6
-12
lines changed

5 files changed

+6
-12
lines changed

llvm/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -877,8 +877,8 @@ set(LLVM_PROFDATA_FILE "" CACHE FILEPATH
877877
"Profiling data file to use when compiling in order to improve runtime performance.")
878878

879879
if(LLVM_INCLUDE_TESTS)
880-
# All LLVM Python files should be compatible down to this minimum version.
881-
set(LLVM_MINIMUM_PYTHON_VERSION 3.8)
880+
# Lit test suite requires at least python 3.6
881+
set(LLVM_MINIMUM_PYTHON_VERSION 3.6)
882882
else()
883883
# FIXME: it is unknown if this is the actual minimum bound
884884
set(LLVM_MINIMUM_PYTHON_VERSION 3.0)

llvm/docs/GettingStarted.rst

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

296296
.. note::
297297

298298
#. Only needed if you want to run the automated test suite in the
299-
``llvm/test`` directory, or if you plan to utilize any Python libraries,
300-
utilities, or bindings.
299+
``llvm/test`` directory.
301300
#. Optional, adds compression / uncompression capabilities to selected LLVM
302301
tools.
303302
#. Optional, you can use any other build tool supported by CMake.

llvm/docs/GettingStartedVS.rst

+1-1
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.8 and newer are known to work. You can
58+
<http://www.python.org/>`_. Version 3.6 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

-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ 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-
5550
Changes to the LLVM IR
5651
----------------------
5752

llvm/docs/TestingGuide.rst

+1-1
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.8 or
26+
software required to build LLVM, as well as `Python <http://python.org>`_ 3.6 or
2727
later.
2828

2929
LLVM Testing Infrastructure Organization

0 commit comments

Comments
 (0)