File tree 1 file changed +6
-4
lines changed 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 11
11
from setuptools .command .test import test as TestCommand
12
12
from setuptools .command .build_ext import build_ext as BuildExtCommand
13
13
14
- if sys .version_info < (3 , 6 ):
14
+ min_version = (3 , 6 )
15
+
16
+ if sys .version_info < min_version :
15
17
error = """
16
- Beginning with Matplotlib 3.1, Python 3.6 or above is required.
18
+ Beginning with Matplotlib 3.1, Python {} or above is required.
17
19
18
20
This may be due to an out of date pip.
19
21
20
22
Make sure you have pip >= 9.0.1.
21
- """
23
+ """ . format ( '.' . join ( str ( n ) for n in min_version )),
22
24
sys .exit (error )
23
25
24
26
# The setuptools version of sdist adds a setup.cfg file to the tree.
@@ -230,7 +232,7 @@ def build_extensions(self):
230
232
classifiers = classifiers ,
231
233
download_url = "http://matplotlib.org/users/installing.html" ,
232
234
233
- python_requires = '>=3.6' ,
235
+ python_requires = '>={}' . format ( '.' . join ( str ( n ) for n in min_version )) ,
234
236
# List third-party Python packages that we require
235
237
install_requires = install_requires ,
236
238
setup_requires = setup_requires ,
You can’t perform that action at this time.
0 commit comments