Skip to content

Commit 1550439

Browse files
committed
Merge pull request #3482 from tacaswell/six_dep
BLD : improve how six dependency is handled
2 parents e79a583 + 73cc574 commit 1550439

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

setupext.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -1186,12 +1186,17 @@ def check(self):
11861186
import six
11871187
except ImportError:
11881188
return (
1189-
"six was not found.")
1189+
"six was not found."
1190+
"pip will attempt to install it "
1191+
"after matplotlib.")
11901192

11911193
if not is_min_version(six.__version__, self.min_version):
1192-
raise CheckFailed(
1193-
"Requires six %s or later. Found %s." %
1194-
(self.min_version, six.__version__))
1194+
return ("The installed version of six is {inst_ver} but "
1195+
"a the minimum required version is {min_ver}. "
1196+
"pip/easy install will attempt to install a "
1197+
"newer version."
1198+
).format(min_ver=self.min_version,
1199+
inst_ver=six.__version__)
11951200

11961201
return "using six version %s" % six.__version__
11971202

0 commit comments

Comments
 (0)