Skip to content

Commit f6c160d

Browse files
authored
Merge pull request #3120 from davidbrochart/python_requires
Use python_requires >=3.5
2 parents cb8eefe + fadc89b commit f6c160d

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

setup.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,11 @@
2929
IntSlider()
3030
"""
3131

32-
#-----------------------------------------------------------------------------
33-
# Minimal Python version sanity check
34-
#-----------------------------------------------------------------------------
35-
36-
import sys
37-
38-
v = sys.version_info
39-
if v[:2] < (3, 5):
40-
error = "ERROR: %s requires Python version 3.5 or above." % name
41-
print(error, file=sys.stderr)
42-
sys.exit(1)
43-
4432
#-----------------------------------------------------------------------------
4533
# get on with it
4634
#-----------------------------------------------------------------------------
4735

36+
import sys
4837
import os
4938
from distutils.core import setup
5039
from distutils.command.build_py import build_py
@@ -99,6 +88,7 @@
9988
'build_py': build_py,
10089
'sdist': sdist,
10190
},
91+
python_requires = '>=3.5',
10292
)
10393

10494
if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):

0 commit comments

Comments
 (0)