|
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
|
@@ -136,8 +138,9 @@ def _download_jquery_to(dest):
|
136 | 138 | try:
|
137 | 139 | buff = download_or_cache(url, sha)
|
138 | 140 | except Exception:
|
139 |
| - raise IOError(f"Failed to download jquery-ui. Please download " |
140 |
| - f"{url} and extract it to {dest}.") |
| 141 | + raise IOError( |
| 142 | + "Failed to download jquery-ui. Please download " |
| 143 | + "{url} and extract it to {dest}.".format(url=url, dest=dest)) |
141 | 144 | with ZipFile(buff) as zf:
|
142 | 145 | zf.extractall(dest)
|
143 | 146 |
|
@@ -178,7 +181,7 @@ def run(self):
|
178 | 181 | # If the user just queries for information, don't bother figuring out which
|
179 | 182 | # packages to build or install.
|
180 | 183 | if not (any('--' + opt in sys.argv
|
181 |
| - for opt in [*Distribution.display_option_names, 'help']) |
| 184 | + for opt in Distribution.display_option_names + ['help']) |
182 | 185 | or 'clean' in sys.argv):
|
183 | 186 | # Go through all of the packages and figure out which ones we are
|
184 | 187 | # going to build/install.
|
|
0 commit comments