File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Original file line number Diff line number Diff line change 8
8
# and/or pip.
9
9
import sys
10
10
11
- if sys .version_info < (3 , 6 ):
11
+ min_version = (3 , 6 )
12
+
13
+ if sys .version_info < min_version :
12
14
error = """
13
- Beginning with Matplotlib 3.1, Python 3.6 or above is required.
15
+ Beginning with Matplotlib 3.1, Python {0} or above is required.
14
16
15
17
This may be due to an out of date pip.
16
18
17
19
Make sure you have pip >= 9.0.1.
18
- """
20
+ """ . format ( '.' . join ( str ( n ) for n in min_version )),
19
21
sys .exit (error )
20
22
21
23
from io import BytesIO
@@ -283,7 +285,7 @@ def run(self):
283
285
classifiers = classifiers ,
284
286
download_url = "http://matplotlib.org/users/installing.html" ,
285
287
286
- python_requires = '>=3.6' ,
288
+ python_requires = '>={}' . format ( '.' . join ( str ( n ) for n in min_version )) ,
287
289
# List third-party Python packages that we require
288
290
install_requires = install_requires ,
289
291
setup_requires = setup_requires ,
You can’t perform that action at this time.
0 commit comments