[PATCH] D71085: [LNT] Declare support for Python 3.6+

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 12:07:54 PST 2019


thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, leandron, PrzemekWirkus, kristof.beyls.

With all tests passing on Python 3.6, this commit declare support for
Python 3.6+. We can lower the requirement later if necessary.


https://reviews.llvm.org/D71085

Files:
  setup.py


Index: setup.py
===================================================================
--- setup.py
+++ setup.py
@@ -9,8 +9,8 @@
 import sys
 from setuptools import setup, find_packages, Extension
 
-if sys.version_info < (2, 7):
-    raise RuntimeError("Python 2.7 or higher required.")
+if sys.version_info < (3, 6) and sys.version_info[:2] != (2, 7):
+    raise RuntimeError("Python 2.7 or Python 3.6 or higher required.")
 
 cflags = []
 
@@ -128,5 +128,5 @@
 
     ext_modules=[cPerf],
 
-    python_requires='>=2.7',
+    python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
 )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71085.232428.patch
Type: text/x-patch
Size: 607 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191205/46d67e9e/attachment.bin>


More information about the llvm-commits mailing list