13
13
if sys .version_info < min_version :
14
14
error = """
15
15
Beginning with Matplotlib 3.1, Python {0} or above is required.
16
+ You are using Python {1}.
16
17
17
18
This may be due to an out of date pip.
18
19
19
20
Make sure you have pip >= 9.0.1.
20
- """ .format ('.' .join (str (n ) for n in min_version )),
21
+ """ .format ('.' .join (str (n ) for n in min_version ),
22
+ '.' .join (str (n ) for n in sys .version_info [:3 ]))
21
23
sys .exit (error )
22
24
23
25
from pathlib import Path
@@ -112,8 +114,9 @@ def _download_jquery_to(dest):
112
114
try :
113
115
buff = download_or_cache (url , sha )
114
116
except Exception :
115
- raise IOError (f"Failed to download jquery-ui. Please download "
116
- f"{ url } and extract it to { dest } ." )
117
+ raise IOError (
118
+ "Failed to download jquery-ui. Please download "
119
+ "{url} and extract it to {dest}." .format (url = url , dest = dest ))
117
120
with ZipFile (buff ) as zf :
118
121
zf .extractall (dest )
119
122
@@ -154,7 +157,7 @@ def run(self):
154
157
# If the user just queries for information, don't bother figuring out which
155
158
# packages to build or install.
156
159
if not (any ('--' + opt in sys .argv
157
- for opt in [ * Distribution .display_option_names , 'help' ])
160
+ for opt in Distribution .display_option_names + [ 'help' ])
158
161
or 'clean' in sys .argv ):
159
162
# Go through all of the packages and figure out which ones we are
160
163
# going to build/install.
@@ -169,10 +172,11 @@ def run(self):
169
172
try :
170
173
message = package .check ()
171
174
except setupext .Skipped as e :
172
- print_status (package .name , f "no [{ e } ]" )
175
+ print_status (package .name , "no [{e}]" . format ( e = e ) )
173
176
continue
174
177
if message is not None :
175
- print_status (package .name , f"yes [{ message } ]" )
178
+ print_status (package .name ,
179
+ "yes [{message}]" .format (message = message ))
176
180
good_packages .append (package )
177
181
178
182
print_raw ()
0 commit comments