File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 120
120
"matplotlib requires pyparsing >= {0}" .format (
121
121
'.' .join (str (x ) for x in _required )))
122
122
123
+ if pyparsing .__version__ == '2.0.0' :
124
+ raise ImportError (
125
+ "pyparsing 2.0.0 has bugs that prevent its use with "
126
+ "matplotlib" )
127
+
123
128
# pyparsing 1.5.6 does not have <<= on the Forward class, but
124
129
# pyparsing 2.0.0 and later will spew deprecation warnings if
125
130
# using << instead. In order to support pyparsing 1.5.6 and above
Original file line number Diff line number Diff line change @@ -977,19 +977,19 @@ def check(self):
977
977
"matplotlib requires pyparsing >= {0}" .format (
978
978
'.' .join (str (x ) for x in required )))
979
979
980
- if sys . version_info [ 0 ] == 2 :
981
- if pyparsing . __version__ == "2.0.0" :
980
+ if pyparsing . __version__ == "2.0.0" :
981
+ if sys . version_info [ 0 ] == 2 :
982
982
return (
983
983
"pyparsing 2.0.0 is not compatible with Python 2.x" )
984
+ else :
985
+ return (
986
+ "pyparsing 2.0.0 has bugs that prevent its use with "
987
+ "matplotlib" )
984
988
985
989
return "using pyparsing version %s" % pyparsing .__version__
986
990
987
991
def get_install_requires (self ):
988
- if sys .version_info [0 ] >= 3 :
989
- return ['pyparsing>=1.5.6' ]
990
- else :
991
- # pyparsing >= 2.0.0 is not compatible with Python 2
992
- return ['pyparsing>=1.5.6,!=2.0.0' ]
992
+ return ['pyparsing>=1.5.6,!=2.0.0' ]
993
993
994
994
995
995
class BackendAgg (OptionalBackendPackage ):
You can’t perform that action at this time.
0 commit comments