File tree 1 file changed +8
-6
lines changed 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 8
8
# and/or pip.
9
9
import sys
10
10
11
- min_version = (3 , 7 )
11
+ py_min_version = (3 , 7 ) # minimal supported python version
12
+ since_mpl_version = (3 , 4 ) # py_min_version is required since this mpl version
12
13
13
- if sys .version_info < min_version :
14
+ if sys .version_info < py_min_version :
14
15
error = """
15
- Beginning with Matplotlib 3.4 , Python {0 } or above is required.
16
- You are using Python {1 }.
16
+ Beginning with Matplotlib {0} , Python {1 } or above is required.
17
+ You are using Python {2 }.
17
18
18
19
This may be due to an out of date pip.
19
20
20
21
Make sure you have pip >= 9.0.1.
21
- """ .format ('.' .join (str (n ) for n in min_version ),
22
+ """ .format ('.' .join (str (n ) for n in since_mpl_version ),
23
+ '.' .join (str (n ) for n in py_min_version ),
22
24
'.' .join (str (n ) for n in sys .version_info [:3 ]))
23
25
sys .exit (error )
24
26
@@ -281,7 +283,7 @@ def build_extensions(self):
281
283
ext_modules = [Extension ("" , [])],
282
284
package_data = package_data ,
283
285
284
- python_requires = '>={}' .format ('.' .join (str (n ) for n in min_version )),
286
+ python_requires = '>={}' .format ('.' .join (str (n ) for n in py_min_version )),
285
287
setup_requires = [
286
288
"certifi>=2020.06.20" ,
287
289
"numpy>=1.16" ,
You can’t perform that action at this time.
0 commit comments