Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e2b07a3

Browse files
committed
move pyparsing back into mpl namespace
svn path=/trunk/matplotlib/; revision=4177
1 parent 6f6fcf3 commit e2b07a3

6 files changed

Lines changed: 7 additions & 15 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2007-11-09 Moved pyparsing back into matplotlib namespace. Don't use
2+
system pyparsing, API is too variable from one release
3+
to the next - DSD
4+
15
2007-11-08 Made pylab use straight numpy instead of oldnumeric
26
by default - EF
37

lib/matplotlib/fontconfig_pattern.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
License : matplotlib license (PSF compatible)
1919
"""
2020
import re
21-
from pyparsing import Literal, OneOrMore, ZeroOrMore, Optional, Regex, \
21+
from matplotlib.pyparsing import Literal, OneOrMore, ZeroOrMore, Optional, Regex, \
2222
StringEnd, ParseException, Suppress
2323

2424
family_punc = r'\\\-:,'

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
from numpy import inf, isinf
135135

136136
from matplotlib import verbose
137-
from pyparsing import Literal, Word, OneOrMore, ZeroOrMore, Combine, Group, \
137+
from matplotlib.pyparsing import Literal, Word, OneOrMore, ZeroOrMore, Combine, Group, \
138138
Optional, Forward, NotAny, alphas, nums, alphanums, StringStart, \
139139
StringEnd, ParseFatalException, FollowedBy, Regex, operatorPrecedence, \
140140
opAssoc, ParseResults, Or, Suppress, oneOf, ParseException, MatchFirst, \

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
print_raw, check_for_freetype, check_for_libpng, check_for_gtk, \
8484
check_for_tk, check_for_wx, check_for_numpy, check_for_qt, check_for_qt4, \
8585
check_for_cairo, check_for_traits, check_for_pytz, check_for_dateutil, \
86-
check_for_pyparsing, check_for_configobj
86+
check_for_configobj
8787
#import distutils.sysconfig
8888

8989
# jdh
@@ -184,8 +184,6 @@
184184
build_contour(ext_modules, packages)
185185
build_nxutils(ext_modules, packages)
186186

187-
if not check_for_pyparsing(): py_modules.append('pyparsing')
188-
189187
print_raw("")
190188
print_raw("OPTIONAL DEPENDENCIES")
191189

setupext.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -325,16 +325,6 @@ def check_for_cairo():
325325
print_status("Cairo", cairo.version)
326326
return True
327327

328-
def check_for_pyparsing():
329-
try:
330-
import pyparsing
331-
except ImportError:
332-
print_status("pyparsing", "mpl-provided")
333-
return False
334-
else:
335-
print_status("pyparsing", pyparsing.__version__)
336-
return True
337-
338328
def check_for_pytz():
339329
try:
340330
import pytz

0 commit comments

Comments
 (0)