File tree 1 file changed +12
-6
lines changed
1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -972,13 +972,19 @@ def check(self):
972
972
973
973
if sys .version_info [0 ] >= 3 :
974
974
required = [2 , 0 , 0 ]
975
+ if [int (x ) for x in pyparsing .__version__ .split ('.' )] < required :
976
+ return (
977
+ "matplotlib requires pyparsing >= {0} on Python 3.x" .format (
978
+ '.' .join (str (x ) for x in required )))
975
979
else :
976
980
required = [1 , 5 , 6 ]
977
- if [int (x ) for x in pyparsing .__version__ .split ('.' )] < required :
978
- return (
979
- "matplotlib requires pyparsing >= {0} on Python {1}" .format (
980
- '.' .join (str (x ) for x in required ),
981
- sys .version_info [0 ]))
981
+ if [int (x ) for x in pyparsing .__version__ .split ('.' )] < required :
982
+ return (
983
+ "matplotlib requires pyparsing >= {0} on Python 2.x" .format (
984
+ '.' .join (str (x ) for x in required )))
985
+ if pyparsing .__version__ == "2.0.0" :
986
+ return (
987
+ "pyparsing 2.0.0 is not compatible with Python 2.x" )
982
988
983
989
return "using pyparsing version %s" % pyparsing .__version__
984
990
@@ -987,7 +993,7 @@ def get_install_requires(self):
987
993
return ['pyparsing>=1.5.6' ]
988
994
else :
989
995
# pyparsing >= 2.0.0 is not compatible with Python 2
990
- return ['pyparsing>=1.5.6,< 2.0.0' ]
996
+ return ['pyparsing>=1.5.6,!= 2.0.0' ]
991
997
992
998
993
999
class BackendAgg (OptionalBackendPackage ):
You can’t perform that action at this time.
0 commit comments