Skip to content

Commit e3f5ef6

Browse files
author
Thomas Preud'homme
committed
[LNT] Declare support for Python 3.6+
Summary: With all tests passing on Python 3.6, this commit declare support for Python 3.6+. We can lower the requirement later if necessary. Reviewers: cmatthews, hubert.reinterpretcast, leandron, PrzemekWirkus, kristof.beyls Reviewed By: PrzemekWirkus Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D71085
1 parent d9a8050 commit e3f5ef6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import sys
1010
from setuptools import setup, find_packages, Extension
1111

12-
if sys.version_info < (2, 7):
13-
raise RuntimeError("Python 2.7 or higher required.")
12+
if sys.version_info < (3, 6) and sys.version_info[:2] != (2, 7):
13+
raise RuntimeError("Python 2.7 or Python 3.6 or higher required.")
1414

1515
cflags = []
1616

@@ -128,5 +128,5 @@
128128

129129
ext_modules=[cPerf],
130130

131-
python_requires='>=2.7',
131+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*',
132132
)

0 commit comments

Comments
 (0)