16498Snate@binkert.orgtry:
26498Snate@binkert.org    from setuptools import setup
36498Snate@binkert.orgexcept ImportError:
46498Snate@binkert.org    from distutils.core import setup
54479Sbinkertn@umich.edu
64479Sbinkertn@umich.edusetup(name = "ply",
74479Sbinkertn@umich.edu            description="Python Lex & Yacc",
84479Sbinkertn@umich.edu            long_description = """
96498Snate@binkert.orgPLY is yet another implementation of lex and yacc for Python. Some notable
106498Snate@binkert.orgfeatures include the fact that its implemented entirely in Python and it
116498Snate@binkert.orguses LALR(1) parsing which is efficient and well suited for larger grammars.
124479Sbinkertn@umich.edu
136498Snate@binkert.orgPLY provides most of the standard lex/yacc features including support for empty
146498Snate@binkert.orgproductions, precedence rules, error recovery, and support for ambiguous grammars.
154479Sbinkertn@umich.edu
166498Snate@binkert.orgPLY is extremely easy to use and provides very extensive error checking.
174479Sbinkertn@umich.edu""",
186498Snate@binkert.org            license="""BSD""",
196498Snate@binkert.org            version = "3.2",
204479Sbinkertn@umich.edu            author = "David Beazley",
214479Sbinkertn@umich.edu            author_email = "dave@dabeaz.com",
224479Sbinkertn@umich.edu            maintainer = "David Beazley",
234479Sbinkertn@umich.edu            maintainer_email = "dave@dabeaz.com",
244479Sbinkertn@umich.edu            url = "http://www.dabeaz.com/ply/",
254479Sbinkertn@umich.edu            packages = ['ply'],
264479Sbinkertn@umich.edu            )
27